RenderWare V2.1

Previous Page Index Next Page

RwReal

RwSetClumpLightSampleRate(RwClump * clump, RwReal rate);

Description

Sets the rate at which a clump is relit.

Arguments

clump Clump to have its sampling rate set.

rate Light sampling rate value (between 0.0 and 1.0)

Comments

Setting the light sampling rate on a clump determines how often lighting is performed on a clump. A value of 1.0 (the default setting for a clump) means that lighting will occur if required every rendering. A value of 0.0 means that lighting will never occur after the first rendering of the clump. A value between the two determines how often during rendering lighting occurs. For example 0.5 means the clump is re-lit every other frame if necessary.

See Also

RwGetClumpLightSampleRate()