The Rex plugins provide a wide range of built-in shader filters that can be applied to any Phaser 3 Game Object or Camera. These filters are applied after the Game Object has been rendered.
Important Requirements:
- WebGL Only: These filters only work in WebGL render mode.
- Unsupported Features: The effects
Circle and Gradient are abandoned. To reintroduce these features, use p3-fx instead.
Available Built-in Filters:
- Distortion & Blur:
Barrel Distortion (pinch/bulge), Blur (Gaussian blur with custom distance/color), Bokeh / Tilt Shift, Displacement (using noise textures), Panorama Blur, and Pixelate (soft mosaic look). - Color & Lighting:
Color Matrix (sepia, greyscale, lsd, etc.), Combine Color Matrix, Gradient Map (recoloring via color ramp), Image Light (panorama/normal map lighting), Quantize (color reduction with dithering), and Threshold (hard/soft channel conversion). - Visual Effects:
Blend mode, Glow (inner/outer), Shadow (drop shadow), Vignette (edge darkening), Wipe/Reveal (directional transitions), and Key (color isolation/removal). - Utility & Advanced:
Blocky (pixelated style), NormalTools (normal map manipulation), Parallel (blending two filter lists), and Threshold.
Composite Filters: