Assign uv2 and uv3 to a mesh?

There are Unity shaders that support TEXCOORD2 and TEXCOORD3, etc. How can I assign the texture coords to a mesh? I see it only supports uv and uv2 in the doc.

@Bunny83 and @hellcats, thanks for attempting an answer of sorts.

For example, the built-in terrain shader has the following:

struct Input {
float2 uv_Control : TEXCOORD0;
float2 uv_Splat0 : TEXCOORD1;
float2 uv_Splat1 : TEXCOORD2;
float2 uv_Splat2 : TEXCOORD3;
float2 uv_Splat3 : TEXCOORD4;
};

I’m well aware of 1D, 2D, 3D, etc. texture coords and that isn’t what I meant :slight_smile:

IntelliSense gives me uv, uv1 and uv2. I guess the mesh class doesn’t support more than 3 texcoords, but I still use Unity 3.0 maybe something has changed…

TEXCOORD2 refers to 2D textures, while TEXCOORD3 refers to 3D textures - it hasn’t got anything to do with the number of texture coordinates per vertex. Unity’s Mesh object only supports 2D textures (u,v coords only, no w coord), but the OpenGL support (GL) supports 3D textures.

UPDATE: see comment below