Sunbeams! But without blurring of the rest of the scene? I have a scene, rendered in Eevee!



I also have some sun rays, with a spotlight and cube that provides volumetrics!



But... The cube providing volumetric also makes the rest of the scene really blurry.

I would like the sun beams to shine while keeping the rest of the scene clear. The following is a hasily photoshopped picture of what I would like to achieve:



Or, to use a picture from the internet, something like this:



The above picture, taken from the internet, uses the sun beams node. However, it is not possible for me to use a composited sun beams node, as the sun beams are originating from a light source that is off-camera.

In summary:
I would like the exact same rays as provided by a volumetric cube, but without blurring the background. How is this possible?
Light rays coming into dark (church window) always will look better, than open foggy environment for this sun-beams.



If you want to avoid volumetrics in back part of the scene, make volumetric Cube smaller or use some texture for Density node to keep Volume Scatter in specific part of your scene.


Separate XYZ node is used instead of Mapping node just because it is still difficult for me to use it for orientation simple Gradient texture in one of main axis.

You can also render separately Volume Pass, add some contrast and composite it.