RenderWare V2.1

Previous Page Index Next Page

RwMaterial *

RwSetMaterialSurface(RwMaterial *material, RwReal ka, RwReal kd, RwReal ks);

Description

Sets the material’s surface attributes (ambient, diffuse, and specular reflection coefficients).

Arguments

material Pointer to the material.

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

The argument material if successful, and NULL otherwise.

See Also

RwGetMaterialAmbient()

RwGetMaterialDiffuse()

RwGetMaterialSpecular()

RwSetMaterialAmbient()

RwSetMaterialDiffuse()

RwSetMaterialSpecular()

RwSetPolygonSurface()

RwSetSurface()