RenderWare V2.1

Previous Page Index Next Page

RwClump *

RwEnvMapClump(RwClump *clump);

Description

Performs a view dependent projection of an environment map onto a clump.

Arguments

clump Pointer to the clump.

Return Value

The argument clump if successful, and NULL otherwise.

Comments

This function can only be called within the context of an RwBeginCameraUpdate()RwEndCameraUpdate() block.

To ensure the accuracy of the map, call this function each time the clump is transformed or the viewing camera is moved.

The environment map must have been previously assigned to that clump using;

RwForAllPolygonsInClumpPointer(clump, (RwPolygon3d*(*)())RwSetPolygonTexture, texture);

See Also

RwCubicTexturizeClump()

RwForAllPolygonsInClump()

RwSetClumpVertexUV()

RwSetPolygonTexture()

RwSetPolygonUV()

RwSphericalTexturizeClump()