RenderWare V2.1

Previous Page Index Next Page

RwLightSampling

RwGetPolygonLightSampling(RwPolygon3d *polygon);

Description

Retrieves the light sampling type of the polygon’s material.

Arguments

polygon Pointer to the polygon.

Return Value

The light sampling type of the polygon’s material if successful, and rwNALIGHTSAMPLING otherwise.

Comments

The light sampling types are:

• rwFACET Flat shading.

• rwVERTEX Smooth shading.

See Also

RwGetMaterialLightSampling()

RwGetPolygonGeometrySampling()

RwSetPolygonLightSampling()