diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index dc5b9538800..5cefa86fcf9 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -164,6 +164,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed a migration issue with the rendering queue in ShaderGraph when upgrading to 10.x; - Fixed null reference in the Undo callback of the graphics compositor - Fixed cullmode for SceneSelectionPass. +- Fixed issue that caused non-static object to not render at times in OnEnable reflection probes. ### Changed - Preparation pass for RTSSShadows to be supported by render graph. diff --git a/com.unity.render-pipelines.high-definition/Runtime/Lighting/Reflection/HDAdditionalReflectionData.Legacy.cs b/com.unity.render-pipelines.high-definition/Runtime/Lighting/Reflection/HDAdditionalReflectionData.Legacy.cs index 1f446401766..f567c805d18 100644 --- a/com.unity.render-pipelines.high-definition/Runtime/Lighting/Reflection/HDAdditionalReflectionData.Legacy.cs +++ b/com.unity.render-pipelines.high-definition/Runtime/Lighting/Reflection/HDAdditionalReflectionData.Legacy.cs @@ -61,6 +61,10 @@ public override void PrepareCulling() // Force the legacy system to not update the probe cubeProbe.mode = ReflectionProbeMode.Custom; cubeProbe.refreshMode = ReflectionProbeRefreshMode.ViaScripting; +#if UNITY_2020_2_OR_NEWER + if (m_ProbeSettings.mode == ProbeSettings.Mode.Realtime) + cubeProbe.renderDynamicObjects = true; +#endif } } }