RenderWare V2.1

Previous Page Index Next Page

RwMaterial *

RwSetMaterialOpacity(RwMaterial *material, RwReal opacity);

Description

Sets the material’s opacity.

Arguments

material Pointer to the material.

opacity Opacity in the range CREAL(0.0) to CREAL(1.0).

Return Value

The argument material if successful, and NULL otherwise.

Comments

An opacity of CREAL(1.0) yields an entirely opaque material. An opacity of CREAL(0.0) yields an entirely transparent material.

See Also

RwGetMaterialOpacity()

RwSetPolygonOpacity()

RwSetSurfaceOpacity()