C4 Engine Terathon Software C4 Engine API Documentation

• Effect Manager

API Links
Developer Links

Effect::GetEffectListIndex

Defined in:  C4Effects.h
Returns the effect list index.
Prototype

unsigned long GetEffectListIndex(voidconst;

Description
The GetEffectListIndex function returns the index of the render list in which the effect is placed when it is visible. The list index can be one of the following values.
kEffectListLight Fully lit effects. These are rendered during the ambient pass and lighting passes.
kEffectListOpaque Opaque effects. These are rendered after the final lighting pass and before any transparent effects.
kEffectListTransparent Transparent effects. These are rendered after all opaque effects and are sorted back to front.
kEffectListFrontmost Frontmost effects. These are render after all transparent effects and are not sorted.
kEffectListOcclusion Occlusion queries. These are rendered after the ambient pass and before the first lighting pass.
kEffectListDistortion Distortion effects. These are rendered into the distortion buffer for post-processing.
By default, an effect is placed in the kEffectListTransparent list, but some effect subclasses change this value.
See Also

Effect::SetEffectListIndex