Skip to content

Commit

Permalink
Don't update shadow volumes during unsupported render modes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlavik1 committed Mar 22, 2024
1 parent 7862ca3 commit 472b4e4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Assets/Scripts/Lighting/ShadowVolumeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ private void HandleUpdate()
cooldown -= Time.deltaTime;
return;
}

if (volumeRenderedObject.GetRenderMode() != RenderMode.DirectVolumeRendering)
{
return;
}

lightDirection = -GetLightDirection(volumeRenderedObject);

if (currentDispatchIndex == 0)
Expand Down

0 comments on commit 472b4e4

Please sign in to comment.