Unity Products:Amplify Shader Editor/Vertex TexCoord
Jump to navigation
Jump to search
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.
|
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 |
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 |