Difference between revisions of "Unity Products:Amplify Shader Editor/Vertex Normal"

From Amplify Creations Wiki
Jump to: navigation, search
m
Line 14: Line 14:
 
|-  
 
|-  
 
| XYZ
 
| XYZ
| Returns the the interpolated vertex normal in object space
+
| Returns the interpolated vertex normal in object space
 
| Float3(4)
 
| Float3(4)
 
|-  
 
|-  

Revision as of 13:05, 25 October 2017

Back to Node List

Vertex Normal

Per vertex interpolation of the vertices normal vector in object space. This data is extracted directly from the mesh and contains the vertex normal relative to the object origin, this means the normal vector values don't change whatever transform value your gameobject has. This is usually useful to use in the Local Vertex Normal output or to create effects that are bound to the object and stay exactly the same even if your gameobject changes position, rotation or size.

NOTE: Do not confuse with World Normal node.


Output Port Description Type
XYZ Returns the interpolated vertex normal in object space Float3(4)
X Returns only the X component of the vertex normal Float
Y Returns only the Y component of the vertex normal Float
Z Returns only the Z component of the vertex normal Float

Back to Node List