Unity Products:Amplify Shader Editor/Object Space View Dir

From Amplify Creations Wiki
Revision as of 00:06, 2 December 2023 by AmplifyWiki (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Back to Node List

Object Space View Dir Node

The Object Space View Dir node calculates a non-normalized direction in object/local space from a position also in object/local space given by its Input towards the camera. This node will also return the direction from the current game object to the camera if Input is left unconnected and its default internal value of (0,0,0,1) is used.

Node Parameter Description Default Value
Input Position in object/local space. Only visible if the respective input port is not connected. 0,0,0,1
Input Port Description Type
Input Position in object/local space. Float4
Output Port Description Type
XYZ Returns the non-normalized direction in object/local space from the specified position towards the camera. Float3
X Returns only the X component of the calculated direction. Float
Y Returns only the Y component of the calculated direction. Float
Z Returns only the Z component of the calculated direction. Float

Back to Node List