Unity Products:Amplify Shader Editor/Vertex Normal

From Amplify Creations Wiki
Revision as of 00:06, 2 December 2023 by AmplifyWiki (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Back to Node List

Vertex Normal Node

The Vertex Normal Node outputs the vertices normal vectors 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 game object 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 game object changes position, rotation or size.
Depending on where this node is being used ( vertex or fragment/surface function ) it will either return a direct value ( on vertex functions ) or an interpolated value between vertices( on fragment/surface functions ).

NOTE: Do not confuse with World Normal node.


Nodes used: Texture Sample, Vertex Normal, Saturate, Lerp

Output Port Description Type
XYZ Returns the vertex normal vector 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