A real-time light source that is rectangular in shape?

I have this effect in my game here:

The main part of the effect is the beam. We want the beam to emit light that matches the shape of the beam. Is this possible to do in Unity? A baked light won’t work since the beam length can vary and the shape is random. If this exact thing isn’t possible, is there a suitable workaround?

Thanks for the help.

If you are rendering in deferred rendering path you could implement this via “Custom Area Lights” with comanndbuffers.
A example for this you can find here.

Not gone say its easy but its definitely doable.

1 Like

There’s even a code example of that already:

https://blogs.unity3d.com/2015/02/06/extending-unity-5-rendering-pipeline-command-buffers/

1 Like