Sun Shaft Shader

SunShaft Shader — Stylized UI Rayburst Effect

This custom SunShaft Shader is a fully-procedural, highly customizable rayburst effect designed for UI elements in Unity (URP, Shader Graph).
It creates dynamic, rotating sun rays with smooth inner glow, soft falloff, and optional masking — perfect for win screens, rewards, power-ups, or attention-grabbing UI moments.

Key Features:

  • Procedural Ray Generation
    Rays are generated mathematically (no textures), allowing infinite resolution and clean visuals.

  • Customizable Ray Controls
    Ray count, spacing, blur, rotation speed, and color can all be adjusted in real time.

  • Inner Glow System
    A soft radial glow enhances depth and highlights the center, with editable inner/outer falloff.

  • Rounded Mask Support
    Optional mask that smoothly clips the shape into rounded UI containers.

  • Optimized for UI
    Built with Shader Graph using half precision, suitable for mobile and performance-sensitive projects.

Use Cases:
Victory screens, reward popups, highlight effects, loading screens, ability icons, and any stylized UI animation that needs energy and motion.