pettervr

1 answer · asked · Lesson: Adding Textures · Course: Shader School

what is Texcoord0 ?

In unity docs I read "

  • TEXCOORD1, TEXCOORD2 and TEXCOORD3 are the 2nd, 3rd and 4th UV coordinates, respectively.

What does that mean - the index at the end?

Thanks!

https://docs.unity3d.com/Manual/SL-VertexProgramInputs.html

  • Texcoord0 is the default 2D coordinate system for UV's 

    starting at U=0 and V=0

    Texcoord1 would be the next set of UV coordinates (especially in UDims)

    Texcoord2 would be the next set of UV coordinates... etc.


    hope this helps