Unity Products:Amplify Shader Editor/Camera To World Matrix

From Amplify Creations Wiki
Jump to navigation Jump to search

Back to Node List

Camera To World Matrix Node

The Camera To World Matrix node returns something in the likes of the inverse view matrix which can be used to transform a position or direction from View to World space.
This is in the likes as for rendering, view space's forward is -z and camera matrices matches the script component's matrices(+z forward).

NOTE 1: We advise using either the Transform Position or Transform Direction as they are easier to use and you wont need to do an explicit multiplication between matrix and position/direction value.
NOTE 2: This matrix for the time this documentation was created returned identity as it internally makes use of unity_CameraToWorld variable which isn't used by Unity's main rendering systems, only for post processing. For the current Inverse view Matrix you can use this, node.


Output Port Description Type
Out Returns current inverse camera to world matrix value. Matrix4x4


Back to Node List