Unity Products:Amplify Shader Editor/Object To View Pos
Jump to navigation
Jump to search
Object To View Pos Node
The Object To View Pos node transforms an Input position in object/local space into camera’s view space.
Coordinates in view space are called eye coordinates and will represent, in case of the Input local position value, its relative position according to where the camera is.
NOTE: We advise using either the Transform Position or Transform Direction as they are both more completes node that allow multiple transform setups.
Node Parameter | Description | Default Value |
---|---|---|
Input | Position in Object/Local space to be transformed into camera view space. Only visible if the respective input port is not connected. | 0,0,0 |
Input Port | Description | Type |
---|---|---|
Input | Position in Object/Local space to be transformed into camera view space. | Float3 |
Output Port | Description | Type |
---|---|---|
XYZ | Returns the transformed position in view space. | Float3 |
X | Returns only the X component of the transformed position in view space. | Float |
Y | Returns only the Y component of the transformed position in view space. | Float |
Z | Returns only the Z component of the transformed position in view space. | Float |