MeshVertexTextureCoordinate()

Syntax

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

Parameters

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.

Return value

None.

See Also

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

Supported OS

All

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