RenderWare V2.1

Previous Page Index Next Page

RwClump *

RwCalculateClumpVertexNormal(RwClump *clump, RwInt32 index);

Description

Activates automatic calculation of the unit shading normal at the vertex which belongs to clump and has the vertex index index. This ensures that the unit shading normal of the vertex will be recalculated every time the vertex is moved with RwSetClumpVertex() or the set of polygons sharing the vertex is modified.

Arguments

clump Pointer to the clump.

index The vertex index.

Return Value

The argument clump if successful, and NULL otherwise.

Comments

Automatic calculation is deactivated after a call to RwSetClumpVertexNormal() or if the vertex is created by calling RwVertexExt() with a non-NULL normal.

Unit shading normals are automatically recalculated by default.

See Also

RwGetClumpVertexNormal()

RwSetClumpVertex()

RwSetClumpVertexNormal()

RwVertexExt()