Skip to content

Macros

When Colorwheel is installed, HAS_COLORWHEEL is defined in shaders and properties files.

The current Colorwheel version, encoded in a 122 format (1 major, 2 minor, 2 incremental).

Colorwheel provides custom renderStage values:

DefineDescription
CLRWL_RENDER_STAGE_SOLIDOpaque, additive, lightning and glint geometries
CLRWL_RENDER_STAGE_TRANSLUCENTNon-OIT translucent geometries
CLRWL_RENDER_STAGE_OIT_DEPTH_RANGEFirst phase of OIT : computes the translucents depth range
CLRWL_RENDER_STAGE_OIT_COEFFICIENTSSecond phase of OIT : computes the transmittance-over-depth functions
CLRWL_RENDER_STAGE_OIT_ACCUMULATEThird phase of OIT : accumulate all weighted translucents using additive blending
CLRWL_RENDER_STAGE_CRUMBLINGCrumbling geometries