Skip to content

Programs

Programs are selected based on the transparency of the Flywheel material.

clrwl_gbuffers is the only required program, other gbuffer programs fallback to it.
clrwl_shadow is optional: if absent, Flywheel instances won’t be rendered in the shadow pass.

Gbuffer ProgramTransparencyDefault blending mode
clrwl_gbuffersopaque-
clrwl_gbuffers_additiveadditiveONE ONE ONE ONE
clrwl_gbuffers_lightninglightningSRC_ALPHA ONE ONE ONE
clrwl_gbuffers_glintglintSRC_COLOR ONE ZERO ONE
clrwl_gbuffers_translucenttranslucent, order independantSRC_ALPHA ONE_MINUS_SRC_ALPHA ONE ONE_MINUS_SRC_ALPHA
clrwl_gbuffers_damagedblockcrumblingDST_COLOR SRC_COLOR ONE ZERO

By default, all shadow programs have their blending disabled.

Shadow ProgramTransparency
clrwl_shadowopaque
clrwl_shadow_additiveadditive
clrwl_shadow_lightninglightning
clrwl_shadow_glintglint
clrwl_shadow_translucenttranslucent, order independant

Opaques, additives, lightnings and glint geometries are rendered before the block entities.
Translucents geometries are rendered before the translucent terrain.