文档

Unity Engine

Unity Engine

TexCoord1

The second set of UV coordinates of the vertex.
阅读时间1 分钟最后更新于 1 个月前

Definition

TexCoord1 = 5

Remarks

This attribute is optional. The attribute is used for texture mapping, as it defines the UV coordinates used to apply textures to a mesh's surface. Unity can use the secondary UVs to store baked lightmap UVs.
UV coordinates are commonly represented using the Vector2 format, which consists of two 32-bit floating-point values, resulting in 8 bytes per vertex. If vertex compression is applied to this attribute, each component is compressed to 16-bit floating-point values, reducing the total to 4 bytes per vertex.
This attribute corresponds to the
TEXCOORD1
semantic in the HLSL shading language.
You can access vertex UVs using methods such as Mesh.GetUVs and Mesh.SetUVs.
For more information, refer to mesh vertex data.