Unity Products:Amplify Shader Editor/Vertex Tangent Sign and Unity Products:Amplify Shader Editor/Vertex TexCoord: Difference between pages

From Amplify Creations Wiki
(Difference between pages)
Jump to navigation Jump to search
m (1 revision imported)
 
ampwiki>Amplify RnD Rick
No edit summary
 
Line 1: Line 1:
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
[[Unity_Products:Amplify_Shader_Editor/Nodes | Back to Node List]]
== Vertex TexCoord node ==


== Vertex Tangent Sign Node ==
The Vertex TexCoord node outputs texture coordinates directly from vertex data without any type of further calculations on tilling and offset.<br/>
'''NOTE:''' Use [[Unity_Products:Amplify_Shader_Editor/Texture_Coordinates|Texture Coordinates]] if a more complete texture operation is required.


The Vertex Tangent Sign node outputs the vertex tangent sign in object space, more specifically it outputs the W component of its vector. An interpolated value is outputted if connected to ports other than Vertex Offset or Vertex Normal.
<img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/VertexTexcoordNode.jpg">
 
<img class="responsive-img" src="http://wiki.amplify.pt/images/NodeDetail/VertexTangentSignNode.jpg">
<br/><font size="1">Nodes used:  
<br/><font size="1">Nodes used:  
[[Unity_Products:Amplify_Shader_Editor/World_Transform_Params|World Transform Params]],
[[Unity_Products:Amplify_Shader_Editor/Vertex_TexCoord|Vertex TexCoord]],
[[Unity_Products:Amplify_Shader_Editor/Vertex_Normal|Vertex Normal]],
[[Unity_Products:Amplify_Shader_Editor/Texture_Sample|Texture Sample]]
[[Unity_Products:Amplify_Shader_Editor/Vertex_Tangent|Vertex Tangent]],
[[Unity_Products:Amplify_Shader_Editor/Cross|Cross]],
[[Unity_Products:Amplify_Shader_Editor/Vertex_Tangent_Sign|Vertex Tangent Sign]],
[[Unity_Products:Amplify_Shader_Editor/Multiply|Multiply]]
</font>
</font>
{| class="wikitable" style="width: 100%;"
|-
! style="width: 10%;" | Node Parameter !! Description !! style="width: 10%;" | Default Value
|-
| id="paramcoordsize" | Coord Size
| The size of the main output port which allows you to read more packed data from vertex coordinates. Dynamically changes output ports accordingly.
* '''Float[2,4]:''' Changes size from Float2 to Float4
| Float2
|-
| id="paramuvset" | UV Channel
| The UV channel used, also knows as UV Index in some applications. Set 2 is usually used for Lightmap UV coordinates.
* '''[1,8]:''' Changes set to specified number from set 1 to set 8. Please that Unity 2018.1 and below only allows from 1 to 4.
| 1
|}
{| class="wikitable" style="width: 100%;"
{| class="wikitable" style="width: 100%;"
|-  
|-  
! style="width: 10%;" | Output Port !! Description !! style="width: 10%;" | Type
! style="width: 10%;" | Output Port !! Description !! style="width: 10%;" | Type
|-  
|-  
| Sign
| UV(WT)
| Returns the assigned vertex tangent sign value.
| Returns a vector2, vector3 or vector4 containing U and V coordinates respectively in case of vector2, UVW coordinates for vector3 and UVWT for vector4
| Float2(34)
|-
| U
| Returns a float containing the U coordinate
| Float
|-
| V
| Returns a float containing the V coordinate
| Float
|- style="background: #e5e5e5;" |
| W
| Returns a float containing the W coordinate. Only available if [[#paramcoordsize|Coord Size]] is set to Float3.
| Float
|- style="background: #e5e5e5;" |
| T
| Returns a float containing the T coordinate. Only available if [[#paramcoordsize|Coord Size]] is set to Float4.
| Float
| 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 10:27, 13 January 2022

Back to Node List

Vertex TexCoord node

The Vertex TexCoord node outputs texture coordinates directly from vertex data without any type of further calculations on tilling and offset.
NOTE: Use Texture Coordinates if a more complete texture operation is required.


Nodes used: Vertex TexCoord, Texture Sample

Node Parameter Description Default Value
Coord Size The size of the main output port which allows you to read more packed data from vertex coordinates. Dynamically changes output ports accordingly.
  • Float[2,4]: Changes size from Float2 to Float4
Float2
UV Channel The UV channel used, also knows as UV Index in some applications. Set 2 is usually used for Lightmap UV coordinates.
  • [1,8]: Changes set to specified number from set 1 to set 8. Please that Unity 2018.1 and below only allows from 1 to 4.
1


Output Port Description Type
UV(WT) Returns a vector2, vector3 or vector4 containing U and V coordinates respectively in case of vector2, UVW coordinates for vector3 and UVWT for vector4 Float2(34)
U Returns a float containing the U coordinate Float
V Returns a float containing the V coordinate Float
W Returns a float containing the W coordinate. Only available if Coord Size is set to Float3. Float
T Returns a float containing the T coordinate. Only available if Coord Size is set to Float4. Float

Back to Node List