Unity Products:Amplify Shader Editor/World Space Light Pos

From Amplify Creations Wiki
Jump to: navigation, search

Back to Node List

World Space Light Pos Node

The World Space Light Pos node outputs either a normalized light direction vector or a light position in world space coordinates, according to the current light type.
For directional lights the Dir/Pos output will specify a world space direction and Type will be set to 0. For other light types the Dir/Pos output will specify a world space position and Type will be set to 1.


Nodes used: World Space Light Pos, World Normal, Dot, Saturate,

Output Port Description Type
Dir/Pos Returns either a light direction or position in world space coordinates according to current light type. Float3
Type Indicates type of light. Returns 0 for directional lights and 1 for all other types. Float

Back to Node List