Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -150,6 +150,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- Fixed UX issue in the graphics compositor related to clear depth and the defaults for new layers, add better tooltips and fix minor bugs (case 1283904)
- Fixed scene visibility not working for custom pass volumes.
- Fixed issue with several override entries in the runtime debug menu.
- Fixed nan in reflection probe when volumetric fog filtering is enabled, causing the whole probe to be invalid.

### Changed
- Preparation pass for RTSSShadows to be supported by render graph.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,15 @@ void FilterVolumetricLighting(uint3 dispatchThreadId : SV_DispatchThreadID,

// If this is outside of the image, force the weight to 0
#ifdef VERTICAL_PASS
if (tapCoord.y < 0.0 || tapCoord.y >= _VBufferViewportSize.y) weight = 0;
if (tapCoord.y < 0.0 || tapCoord.y >= _VBufferViewportSize.y)
#else
if (tapCoord.x < 0.0|| tapCoord.x >= _VBufferViewportSize.x) weight = 0;
if (tapCoord.x < 0.0 || tapCoord.x >= _VBufferViewportSize.x)
#endif
{
// To avoid NaNs, we have to override this value
currentValue = 0.0f;
weight = 0.0f;
}

// Accumulate the value and weight
value += currentValue * weight;
Expand Down