nameopcionalstringA name, which is what a warning about this effect will call it, and what an editor lists.
fragmentopcionalstringThe hook, in WGSL: fn effect(color: vec4<f32>, uv: vec2<f32>) -> vec4<f32>.
fragmentGlslopcionalstringThe same hook in GLSL, without which the effect is WebGPU only.
effectopcionalTShader | stringA file from useLoadShader, or the name one was loaded under. Wins over fragment.
uniformsopcionalUThe knobs, and what they start at. Laid over whatever a file or a built-in says.
uniformSigopcionalTUniformSignatureWhat 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.
paletteopcionalTPalette | nullThe colours to match against, from useLoadPalette.
lutopcionalTLut | nullThe grading table, from useLoadLut. Never set alongside palette.
enabledopcionalbooleanWhether it runs at all. Default true.