MeshVertexNormal()

Syntax

MeshVertexNormal(x, y, z)
Description
Add normal information to the new vertex previously added with MeshVertexPosition(). The normal vector is used to calculate lightning on an object. To automatically computes the vector normal once the mesh is created, use NormalizeMesh().

Parameters

x, y, z The normal vector.

Return value

None.

See Also

CreateMesh(), MeshVertexPosition(), MeshVertexColor(), MeshVertexTextureCoordinate(), NormalizeMesh()

Supported OS

All

<- MeshVertexCount() - Mesh Index - MeshVertexPosition() ->