MeshVertexTextureCoordinate()

语法

MeshVertexTextureCoordinate(u, v)
概要
Add UV information to the new vertex previously added with MeshVertexPosition(). The UV information is used to apply the texture on the mesh.

参数

u The u value. This value is the X position in the texture where the vertex should map. This value is usually between 0 and 1, where 0 is the texture X origin and 1 is the texture X end.
v The v value. This value is the Y position in the texture where the vertex should map. This value is usually between 0 and 1, where 0 is the texture Y origin and 1 is the texture Y end.

返回值

无.

参阅

CreateMesh(), MeshVertexPosition(), MeshVertexNormal(), MeshVertexTangent(), MeshVertexColor()

已支持操作系统

所有

<- MeshVertexTangent() - Mesh Index - NormalizeMesh() ->