Unity Products:Amplify Shader Editor/Object To View Pos

From Amplify Creations Wiki
Jump to: navigation, search

Back to Node List

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.

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

Back to Node List