phaser4-rex-plugins

repository·master·Indexed 23 days ago

https://github.com/rexrainbow/phaser3-rex-notes

A collection of notes, documentation, and plugin implementations for the Phaser 4 engine and Rex plugins for Phaser 3. Includes documentation for the Cubism Web Framework for Live2D models, as well as custom game object plugins such as RexCustomProgress and RexCustomShapes for creating and managing dynamic shapes and progress bars in Phaser scenes.

Tokens
648.8K
Snippets
1.4K
Records
2.8K
Agent score
79%

What's inside phaser4-rex-plugins

  1. Overview of Built-in Shader Filters

    master

    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:

    • Bloom
    • Shine
  2. Introduction to UI Tweaker

    master
    The UI Tweaker is a plugin designed for fine-tuning the properties of a target Phaser game object in real-time. It provides a graphical interface (based on Tweakpane) that allows developers to manipulate object properties during runtime, which is useful for debugging and rapid prototyping of game mechanics, animations, or visual styles.