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
5 changes: 5 additions & 0 deletions com.unity.render-pipelines.high-definition/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed compilation issue related to shader stripping in ray tracing.
- Fixed flipped UV for directional light cookie on PBR Sky (case 1382656).
- Fixing missing doc API for RTAS Debug display.
- Fixed AO dissapearing when DRS would be turned off through a camera, while hardware drs is active in DX12 or Vulkan (case 1383093).
- Fixed misc shader warnings.
- Fixed a shader warning in UnityInstancing.hlsl
- Fixed for APV debug mode breaking rendering when switching to an asset with APV disabled.
- Fixed potential asymmetrical resource release in the volumetric clouds (case 1388218).
- Fixed the fade in mode of the clouds not impacting the volumetric clouds shadows (case 1381652).

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public partial class HDRenderPipeline
int m_CombineCloudsKernelColorCopy;
int m_CombineCloudsKernelColorRW;
int m_CombineCloudsSkyKernel;
bool m_ActiveVolumetricClouds;

// Combine pass via hardware blending, used in case of MSAA color target.
Material m_CloudCombinePass;
Expand All @@ -52,7 +53,9 @@ struct VolumetricCloudsCameraData

void InitializeVolumetricClouds()
{
if (!m_Asset.currentPlatformRenderPipelineSettings.supportVolumetricClouds)
// Keep track of the state for the release
m_ActiveVolumetricClouds = m_Asset.currentPlatformRenderPipelineSettings.supportVolumetricClouds;
if (!m_ActiveVolumetricClouds)
return;

// Allocate the buffers for ambient probe evaluation
Expand Down Expand Up @@ -89,7 +92,7 @@ void InitializeVolumetricClouds()

void ReleaseVolumetricClouds()
{
if (!m_Asset.currentPlatformRenderPipelineSettings.supportVolumetricClouds)
if (!m_ActiveVolumetricClouds)
return;

// Destroy the material
Expand Down