RenderWare V2.1

Previous Page Index Next Page

RwBool

RwSetSurfaceLightSampling(RwLightSampling type);

Description

Sets the light sampling type of the current material.

Arguments

type The light sampling type.

Return Value

TRUE if successful, and FALSE otherwise.

Comments

The light sampling types are:

• rwFACET Flat shading.

• rwVERTEX Smooth shading.

This function can only be called within the context of an RwModelBegin()RwModelEnd() block.

See Also

RwModelBegin()

RwModelEnd()

RwSetMaterialLightSampling()

RwSetPolygonLightSampling()

RwSetSurfaceGeometrySampling()