Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed missing API documentation for LTC area light code.
- Fixed diffusion profile breaking after upgrading HDRP (case 1337892).
- Fixed undo on light anchor.
- Fixed invalid cast exception on HDProbe.
- Fixed some depth comparison instabilities with volumetric clouds.
- Fixed AxF debug output in certain configurations (case 1333780).
- Fixed white flash when camera is reset and SSR Accumulation mode is on.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -633,15 +633,11 @@ private Vector3 ComputeCapturePositionWS()

private void QueueSHBaking()
{
var hdrp = (HDRenderPipeline)RenderPipelineManager.currentPipeline;
if (hdrp != null)
{
if (!hdrp.currentPlatformRenderPipelineSettings.supportProbeVolume) return;
}
else
{
if (!(RenderPipelineManager.currentPipeline is HDRenderPipeline hdrp))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can simplify with HDRenderPipeline.asset != null and/or HDRenderPipeline.currentPlatformRenderPipelineSettings != null ?

return;

if (!hdrp.currentPlatformRenderPipelineSettings.supportProbeVolume)
return;
}

Vector3 capturePositionWS = ComputeCapturePositionWS();
if (m_SHRequestID < 0)
Expand Down