Created
July 16, 2022 00:51
-
-
Save doctorpangloss/41fa85298a1026540c8e60942d452c29 to your computer and use it in GitHub Desktop.
patch for hdrp reflection probe culling issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Packages/[email protected]/Runtime/RenderPipeline/HDRenderPipeline.cs b/Packages/[email protected]/Runtime/RenderPipeline/HDRenderPipeline.cs | |
index 34918678..6997fe2e 100644 | |
--- a/Packages/[email protected]/Runtime/RenderPipeline/HDRenderPipeline.cs | |
+++ b/Packages/[email protected]/Runtime/RenderPipeline/HDRenderPipeline.cs | |
@@ -1334,6 +1334,14 @@ namespace UnityEngine.Rendering.HighDefinition | |
hdCamera.RequestDynamicResolution(cameraRequestedDynamicRes, dynResHandler); | |
+ // Force add all the HDProbes | |
+ var allProbes = GameObject.FindObjectsOfType<HDProbe>(); | |
+ cullingResults.hdProbeCullingResults.Reset(); | |
+ foreach (var probe in allProbes) | |
+ { | |
+ cullingResults.hdProbeCullingResults.AddProbe(probe); | |
+ } | |
+ | |
// Add render request | |
var request = new RenderRequest | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment