diff --git a/Assets/Scripts/Lighting/ShadowVolumeManager.cs b/Assets/Scripts/Lighting/ShadowVolumeManager.cs index 76ae25f4..e4c6c928 100644 --- a/Assets/Scripts/Lighting/ShadowVolumeManager.cs +++ b/Assets/Scripts/Lighting/ShadowVolumeManager.cs @@ -119,6 +119,12 @@ private void HandleUpdate() cooldown -= Time.deltaTime; return; } + + if (volumeRenderedObject.GetRenderMode() != RenderMode.DirectVolumeRendering) + { + return; + } + lightDirection = -GetLightDirection(volumeRenderedObject); if (currentDispatchIndex == 0)