Unity Products:Amplify Shader Editor/Transform Direction

From Amplify Creations Wiki
Jump to: navigation, search

Back to Node List

Transform Direction node

The Transform Direction node transforms a given direction vector between different spaces.


Nodes used: Vertex Normal, Transform Direction, World Space Light Dir, Dot, Saturate

Node Parameter Description Default Value
Input Vector value to be transformed. Only visible if the respective input port is not connected. 0,0,0
From Current space from which input vector is on.
  • Object Space
  • World Space
  • View Space
Object Space
To Space for the direction to be transformed to.
  • Object Space
  • World Space
  • View Space
World Space
Normalize Do a Normalize operation over the final calculated vector. False


Input Port Description Type
In Vector value to be transformed. Float3
Output Port Description Type
XYZ Returns the transformed vector in the specified space. Float3
X Returns only the X component of the transformed vector in the specified space. Float
Y Returns only the Y component of the transformed vector in the specified space. Float
Z Returns only the Z component of the transformed vector in the specified space. Float

Back to Node List