Proximity Glow Shader | Dencho

Proximity Glow Shader

A Shader Graph effect that adds a dynamic glow when objects or UI elements get close.

The **Proximity Glow Shader** is a Unity Shader Graph experiment designed to make objects glow dynamically based on their distance to a target.

The Idea is a universal shadr that allows you to create glowing highlights around world spaced UI buttons, in-world sprites, or flat 3D planes whenever something gets close to them. It’s a simple but effective technique for helping the user to guage how close an input is to interacting with an object.

alt text

In practice, this allows you to create glowing highlights around UI buttons, in-world sprites, or flat 3D planes whenever something gets close to them. It’s a simple but effective technique for drawing a user’s attention without cluttering the scene with extra geometry or VFX particles.

By using the UI stencil pipeline, the shader properly respects Unity’s UI rendering order. This means you can integrate it into menus, HUD overlays, or AR interaction panels while still working seamlessly with 3D world elements. The glow intensity and radius are controlled by distance math inside Shader Graph, making it performant and highly flexible.

This shader started as a quick experiment but quickly became a handy tool for AR/VR projects where subtle, proximity-based feedback is key to keeping interfaces readable and interactive.

Related