RenderWare V2.1

Previous Page Index Next Page

RwMaterial *

RwSetMaterialLightSampling(RwMaterial *material,
RwLightSampling type);

Description

Sets the material’s light sampling type.

Arguments

material Pointer to the material.

type The light sampling type.

Return Value

The argument material if successful, and NULL otherwise.

Comments

The light sampling types are:

• rwFACET Flat shading.

• rwVERTEX Smooth shading.

See Also

RwGetMaterialLightSampling()

RwSetMaterialGeometrySampling()

RwSetPolygonLightSampling()

RwSetSurfaceLightSampling()