RenderWare V2.1

Previous Page Index Next Page

RwBool

RwSetSurface(RwReal ka, RwReal kd, RwReal ks);

Description

Sets the surface attributes (ambient, diffuse, and specular reflection coefficients) of the current material.

Arguments

ka Ambient reflection coefficient in the range CREAL(0.0) to CREAL(1.0).

kd Diffuse reflection coefficient in the range CREAL(0.0) to CREAL(1.0).

ks Specular reflection coefficient in the range CREAL(0.0) to CREAL(1.0).

Return Value

TRUE if successful, and FALSE otherwise.

Comments

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

See Also

RwModelBegin()

RwModelEnd()

RwSetMaterialSurface()

RwSetPolygonSurface()

RwSetSurfaceAmbient()

RwSetSurfaceDiffuse()

RwSetSurfaceSpecular()