You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue that to be quite frank i've been having virtually in all assets of volumetric lights, atmospheric scattering, height fog, global fog, volumetric fog etc...
The effect works great, however whenever there are no shadows being casted near the camera, the effect disables itself entirely.
Just wanted to know if this is intended behaviour (and by extension intended behaviour of all volumetric effect assets), or if i'm just doing something terribly wrong or anything I might be missing for the proper scene setup, or maybe even if there's something wrong with my GPU drivers.
The text was updated successfully, but these errors were encountered:
Yes, this is a known Unity issue (reported ages ago). Unity stops rendering shadows if there are no visible shadow casters. That's a good thing. But it also stops executing command buffers at that moment. This breaks the effect. There is no way how to detect it happened and so we can't do anything about it.
There is a simple workaround though. Place your camera inside a small shadow-casting 3d cube. The cube won't be visible from your camera because the back faces will be discarded by the rasterizer. This way there is a shadow-casting object in front of your camera at all times and Unity will be forced to keep updating shadows and executing our command buffers.
You could probably find a more elegant solution but the goal is always the same - force Unity to update shadows at all times. Hope this helps.
Hello!
I'm having an issue that to be quite frank i've been having virtually in all assets of volumetric lights, atmospheric scattering, height fog, global fog, volumetric fog etc...
The effect works great, however whenever there are no shadows being casted near the camera, the effect disables itself entirely.
GIF of problem
Just wanted to know if this is intended behaviour (and by extension intended behaviour of all volumetric effect assets), or if i'm just doing something terribly wrong or anything I might be missing for the proper scene setup, or maybe even if there's something wrong with my GPU drivers.
The text was updated successfully, but these errors were encountered: