Unity Products:Amplify Shader Editor/World Space Light Pos: Difference between revisions
Jump to navigation
Jump to search
ampwiki>Amplify RnD Rick No edit summary |
AmplifyWiki (talk | contribs) m (1 revision imported) |
(No difference)
|
Latest revision as of 00:06, 2 December 2023
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 |