Skip to content

Commit 07b27a3

Browse files
HDRenderLoop: Fix assert issue
1 parent 27c5c5e commit 07b27a3

File tree

1 file changed

+6
-0
lines changed
  • Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/TilePass

1 file changed

+6
-0
lines changed

Assets/ScriptableRenderLoop/HDRenderLoop/Lighting/TilePass/TilePass.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ public void Clear()
117117
lights.Clear();
118118
envLights.Clear();
119119
shadows.Clear();
120+
121+
bounds.Clear();
122+
lightVolumes.Clear();
120123
}
121124

122125
public void Allocate()
@@ -804,6 +807,9 @@ public void GetEnvLightVolumeDataAndBound(VisibleReflectionProbe probe, LightVol
804807
var delta = combinedExtent - e;
805808
ligthVolumeData.boxInnerDist = e;
806809
ligthVolumeData.boxInvRange.Set(1.0f / delta.x, 1.0f / delta.y, 1.0f / delta.z);
810+
811+
m_lightList.bounds.Add(bound);
812+
m_lightList.lightVolumes.Add(ligthVolumeData);
807813
}
808814

809815
public override void PrepareLightsForGPU(CullResults cullResults, Camera camera, ref ShadowOutput shadowOutput)

0 commit comments

Comments
 (0)