Website powered by

Fake volumetric light shader - Unity URP

This is a shader that morphs any 3D shape to follow the light direction and create beautiful, customizable and cheap volumetric lights in URP without the need for any advanced light simulation.
.
It's very easy to set up, you just have to put the mesh on the window and scale it to approximately fit the size.
I made this to try my hand at shaders and have something reusable for future projects.
.
I was inspired by Aki Welter's work () but made my own implementation of it that works a bit differently, but the idea remains the same.

Full shader graph

Full shader graph

All parameters we can tweak. There's also an unexposed gradient.

All parameters we can tweak. There's also an unexposed gradient.