EffectDef
Defined in: postprocess/effects.ts:69
Properties
Section titled “Properties”category?
Section titled “category?”
optionalcategory?:EffectCategory
Defined in: postprocess/effects.ts:73
Set for every built-in effect, by the table at the end of this file.
colors?
Section titled “colors?”
optionalcolors?:EffectColorDef[]
Defined in: postprocess/effects.ts:89
Colour params, carried on the volume as colors.
compute?
Section titled “compute?”
optionalcompute?:ComputeEffectSource
Defined in: postprocess/effects.ts:77
Set instead of factory for an effect that runs as a compute shader.
factory?
Section titled “factory?”
optionalfactory?: () =>number
Defined in: postprocess/effects.ts:75
What compiles the effect’s draw shader. Absent for a compute effect (see compute).
Returns
Section titled “Returns”number
fallback?
Section titled “fallback?”
optionalfallback?: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
multiPass?
Section titled “multiPass?”
optionalmultiPass?:EffectSubPass[]
Defined in: postprocess/effects.ts:90
native?
Section titled “native?”
optionalnative?: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”).
textures?
Section titled “textures?”
optionaltextures?: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
Section titled “uniforms”uniforms:
EffectUniformDef[]
Defined in: postprocess/effects.ts:85