MeshVertexColor()

Syntax

MeshVertexColor(Color)
Description
Set color information to the current vertex previously added with MeshVertexPosition() or MeshVertex(). To have any effect, the material associated to the mesh has to be defined with SetMaterialColor(#Material, #PB_Material_AmbientColor, -1) and AmbientColor()() set to a positive value. This function needs a vertex created before to apply color to it.

Parameters

Color Color of the vertex. This color can be in RGB or RGBA format.

Return value

None.

See Also

CreateMesh(), MeshVertexPosition(), MeshVertexNormal(), MeshVertexTangent(), MeshVertexTextureCoordinate(), MeshVertex()

Supported OS

All

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