nameoptionalstringA name, which is what a warning about this effect will call it, and what an editor lists.
fragmentoptionalstringThe hook, in WGSL: fn effect(color: vec4<f32>, uv: vec2<f32>) -> vec4<f32>.
fragmentGlsloptionalstringThe same hook in GLSL, without which the effect is WebGPU only.
effectoptionalTShader | stringA file from useLoadShader, or the name one was loaded under. Wins over fragment.
uniformsoptionalUThe knobs, and what they start at. Laid over whatever a file or a built-in says.
uniformSigoptionalTUniformSignatureWhat kind each knob is, when it is already known.
Left out, it is worked out from the values, which is what a hand-written effect wants. The
engine's own four pass it because they already know, and because spreading one of them in is
meant to be a whole effect rather than a starting point.
paletteoptionalTPalette | nullThe colours to match against, from useLoadPalette.
lutoptionalTLut | nullThe grading table, from useLoadLut. Never set alongside palette.
enabledoptionalbooleanWhether it runs at all. Default true.