MeshVertexTextureCoordinate()

Syntax

MeshVertexTextureCoordinate(u.f, v.f)
Description
Set UV information to the current vertex previously added with MeshVertexPosition() or MeshVertex(). 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(), MeshVertex()

Supported OS

All

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