OptionalshaderFragment shader code or preset name to be applied as a post effect.
You can pass a preset name from ShaderPreset (e.g., "invert", "grayscale", "sepia")
or provide custom shader code.
The shader will receive the whole canvas as sampler2D src.
Standard uniforms available:
sampler2D src: The input texture (rendered canvas)vec2 resolution: Canvas resolution in pixelsvec2 offset: Offset valuesvec4 viewport: Viewport informationfloat time: Time in seconds since VFX startedvec2 mouse: Mouse position in pixelssampler2D backbuffer: Previous frame texture (if persistent is enabled)Optional: shader and effect are mutually exclusive.
If both are present, effect takes precedence.
OptionaluniformsCustom uniform values to be passed to the post effect shader.
Works the same way as element uniforms.
OptionalpersistentWhether the post effect should persist across frames.
If enabled, the previous output is available as sampler2D backbuffer.
OptionalfloatUse 32-bit floating point render target. (Default: false)
OptionalglslSee GlslVersion.
OptionaleffectEffect (or pipeline of effects) to apply in this post-effect slot.
Configuration for post effects that are applied to the final canvas output.