Skip to content

Commit 5aa12b0

Browse files
HDRenderLoop: Fix directional light issue with single pass
1 parent 91c8b14 commit 5aa12b0

File tree

1 file changed

+1
-0
lines changed
  • Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/SinglePass

1 file changed

+1
-0
lines changed

Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/SinglePass/SinglePass.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public void PushGlobalParams(Camera camera, RenderLoop loop, HDRenderLoop.LightL
8484
s_PunctualShadowList.SetData(lightList.punctualShadows.ToArray());
8585

8686
Shader.SetGlobalBuffer("_DirectionalLightList", s_DirectionalLights);
87+
Shader.SetGlobalInt("_DirectionalLightCount", lightList.directionalLights.Count);
8788
Shader.SetGlobalBuffer("_DirectionalShadowList", s_DirectionalShadowList);
8889
Shader.SetGlobalBuffer("_PunctualLightList", s_PunctualLightList);
8990
Shader.SetGlobalInt("_PunctualLightCount", lightList.punctualLights.Count);

0 commit comments

Comments
 (0)