Skip to content

EffectDef

Defined in: postprocess/effects.ts:69

optional category?: EffectCategory

Defined in: postprocess/effects.ts:73

Set for every built-in effect, by the table at the end of this file.


optional colors?: EffectColorDef[]

Defined in: postprocess/effects.ts:89

Colour params, carried on the volume as colors.


optional compute?: ComputeEffectSource

Defined in: postprocess/effects.ts:77

Set instead of factory for an effect that runs as a compute shader.


optional factory?: () => number

Defined in: postprocess/effects.ts:75

What compiles the effect’s draw shader. Absent for a compute effect (see compute).

number


optional fallback?: EffectSubPass[]

Defined in: postprocess/effects.ts:84

Passes that stand in for a native or compute effect on a device that cannot run it (a fragment version of a compute one). They take every one of the effect’s uniforms, as a multi-pass effect’s passes do.


label: string

Defined in: postprocess/effects.ts:71


optional multiPass?: EffectSubPass[]

Defined in: postprocess/effects.ts:90


optional native?: string

Defined in: postprocess/effects.ts:79

Set instead of factory for an effect the engine implements itself, in compute passes of its own (“voxelGI”).


optional textures?: EffectTextureDef[]

Defined in: postprocess/effects.ts:87

Texture params, carried on the volume as serialized refs (textures).


type: string

Defined in: postprocess/effects.ts:70


uniforms: EffectUniformDef[]

Defined in: postprocess/effects.ts:85