Unity Products:Amplify Shader Editor/Shade Vertex Lights

From Amplify Creations Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Back to Node List

Shade Vertex Lights Node

The Shade Vertex Lights computes illumination from four per-vertex lights and ambient, given object space position and normal.

NOTE 1: This node only outputs correct results on template vertex/frag shaders with their LightMode set to Vertex.
NOTE 2: Node only supported on Built-in pipeline.

Node Parameter Description Default Value
Vertex Position Vertex position to be used on the light calculation. Only visible if the respective input port is not connected. 0,0,0,0
Vertex Normal Vertex normal to be used on the light calculation.. Only visible if the respective input port is not connected. 0,0,0
Light Amount Amount of nearest lights to take into account on the lighting calculation. This value can range from 0 to 8. 4
Is Spotlight Specify if lights are treated as spotlights ( more expensive ) or point lights. False
Input Port Description Type
Vertex Position Vertex position to be used on the light calculation. Float4
Vertex Normal Vertex normal to be used on the light calculation. Float3

Back to Node List