What problem does it solve?
This Skill solves the problem of getting correct visual compositing in PixiJS when you need objects to blend in specific ways instead of just layering normally.
Core Features & Use Cases
- Standard GPU blend modes: Apply common blend equations like normal, add, multiply, screen, erase, min, and max efficiently for glow, shadows, and stylized effects.
- Advanced blend modes (extension-based): Enable richer blends such as overlay, hard-light, color-burn, and color-dodge via pixi.js/advanced-blend-modes, including the required WebGL back-buffer setup.
- Batch-friendly ordering: Reduce performance cost by grouping identical blendMode siblings together to minimize render batch breaks.
- Use Case: Create a layered VFX scene where sprites with “add” should behave like lights, sprites with “multiply” behave like shadows, and select sprites use “overlay” or “color-burn” for cinematic contrast.
Quick Start
Set each display object's blendMode (for example add, multiply, or color-burn) and ensure advanced modes are enabled with the extension import and WebGL init back-buffer enabled.