Unreal Engine – Volumetric Spotlight with Shadow UE5557

Volumetric Spotlight with Shadow

Technical Details

1 base Blueprint to configure the spotlight (supports 1 shadow mask)
1 Blueprint child that supports up to 4 shadow masks and some more realistic light computation, but results in a much higher render cost.
2 Blueprints to easily configure the built in volumetrics of the Unreal Engine. (These just imitate volumetrics by rendering the surface of a spotlight volume)
2 Demo levels with a total of 10 examples of the spotlight.
3 props of spotlight casings
1 prop of a bunkerlamp
5 Materials of fans.
Bunker Demo contains 24 materials as a bonus
Butterfly Demo contains a nice ground and water material.NOTE: Due to the high render cost this effect is only suited for mid to high end machines (standing inside the spotlight is worst-case condition and FPS will drop from 50 to 20 FPS on a mid-range machine at 1920×1200 (Already with plane resolution reduction optimization with a factor 4, so on the expense of loosing some quality of the effect (the planes (edges) become slightly visible))). Rendering multiple spotlights and looking at them from a distance is not really a problem, since it is not so much about the amount of spotlights (tested with 4), but more about the screen fill-rate. If you want to have a dynamic shadow maks, it is best to only add 1 spotlight at a time on the screen, because for dynamic masking it is needed to update the materials of all (512) planes, which is very performance costly.