Unity Products:Amplify Shader Editor/Texture Coordinates

From Amplify Creations Wiki
Revision as of 16:54, 10 August 2017 by Kebrus (talk | contribs)
Jump to: navigation, search

Back to Node List

Texture Coordinates

The Texture Coordinate node generates UVs that define how a texture is mapped onto a 3d asset. If the Tex port is connected to a Texture Object or if one is referenced in the node property panel they can be transformed by that texture fields in the material inspector. Otherwise the coordinates can be transformed with the node's parameters or inputs.


Node Parameter Description Default Value
Reference Points to an existing Texture Object or Texture Sample node
  • None: <None> is always the first option and let's you turn of referencing altogether
  • Option #: All other options will be dynamically generated to show all the available texture nodes in the graph
None
Coord Size The size of the main output port which allows you pack and read more data from vertex coordinates. Will dynamically change output ports accordingly.
  • Float[2,4]: Changes size from Float2 to Float4
Float2
UV Set UV channel used, also refereed to UV Index in some applications. Set 2 is usually used for Lightmap UV coordinates.
  • [1,4]: Changes set to specified number from set 1 to set 4
1
Other Parameters
Tilling Serves as a constant multiplier of UVs that makes them grow or shrink in size, effectively creating a tilling pattern of UVs. Only available if Reference is set to <None> or if the equivalent input port is not connected. ( 1, 1 )
Offset Adds a constant value to UVs that makes them move in a desired direction, effectively offsetting the UVs from the original position. Only available if Reference is set to <None> or if the equivalent input port is not connected. ( 0, 0 )


Input Port Description Type
Tex This port accepts a Texture Object which allows the use of said texture's UV parameters. Overriding the node tilling and offset and using the material inspector instead. Sampler2D
Tilling Dynamic version of the parameter Tilling. Only available if Reference is set to <None>, otherwise get's locked to indicate that uses the Tilling of the texture property in the material inspector. Float2
Offset Dynamic version of the parameter Offset. Only available if Reference is set to <None>, otherwise get's locked to indicate that uses the Offset of the texture property in the material inspector. Float2
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 Coor Size is set to Float3. Float
T Returns a float containing the T coordinate. Only available if Coor Size is set to Float4. Float

Back to Node List