Skip to content

Commit 1057c35

Browse files
remi-chapelainEvergreen
authored and
Evergreen
committed
[HDRP] Fix water using the wrong depth for transparents with depth prepass enabled
1 parent 12b1383 commit 1057c35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/HDRenderPipeline.RenderGraph.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ TransparentPrepassOutput RenderTransparentPrepass(RenderGraph renderGraph, Culli
15881588
if (hasWater)
15891589
{
15901590
// Render the water gbuffer (and prepare for the transparent SSR pass)
1591-
output.waterGBuffer = m_WaterSystem.RenderWaterGBuffer(renderGraph, cullingResults, hdCamera, prepassOutput.depthBuffer, prepassOutput.normalBuffer, currentColorPyramid, prepassOutput.depthPyramidTexture, lightLists);
1591+
output.waterGBuffer = m_WaterSystem.RenderWaterGBuffer(renderGraph, cullingResults, hdCamera, prepassOutput.depthBuffer, prepassOutput.normalBuffer, currentColorPyramid, output.depthBufferPreRefraction, lightLists);
15921592

15931593
// Render Water Line
15941594
m_WaterSystem.RenderWaterLine(renderGraph, hdCamera, prepassOutput.depthBuffer, ref output);

0 commit comments

Comments
 (0)