This is a custom Additive UI Shader specifically designed for the Unity UI (UGUI) system, with full support for Unity UI Mask and RectMask2D components. Unlike standard additive shaders—which typically do not respect UI masking due to missing stencil buffer integration—this shader is built with proper stencil operations and UI-compatible render settings, allowing it to function seamlessly within masked UI hierarchies.
Mask and RectMask2DBlend One One for true additive rendering_Stencil, _StencilComp, _StencilOp, etc.)The shader was generated with the assistance of ChatGPT AI, then refined, integrated, and thoroughly tested across multiple platforms to ensure stability, performance, and compatibility.This shader is ideal for implementing masked additive effects on UI elements, such as glows, animated highlights, magical effects, particles rendered in UI space, or dynamic feedback elements.