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

From Amplify Creations Wiki
Jump to: navigation, search
(Created page with "This page is empty, contribute today! Back to Node List Category:NodesCategory:Vertex Data")
 
m
Line 1: Line 1:
This page is empty, contribute today!
+
[[Unity_Products:Amplify_Shader_Editor/Nodes | 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 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 [[Unity Products:Amplify Shader Editor/World Normal|World Normal]] node.
 +
 
 +
<img class="responsive-img" src="http://amplify.pt/NodeDetail/VertexNormalNode.gif">
 +
 
 +
 
 +
{| class="wikitable" style="width: 100%;"
 +
|-
 +
! style="width: 10%;" | Output Port !! Description !! style="width: 10%;" | Type
 +
|-
 +
| XYZ
 +
| Returns the 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
 +
|}
  
 
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
 
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
 
[[Category:Nodes]][[Category:Vertex Data]]
 
[[Category:Nodes]][[Category:Vertex Data]]

Revision as of 14:41, 30 August 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 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 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