Skip to content

Commit 6639a47

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.2] Move the CompositionMode.BeforeColorPyramidAfterClouds to happen after water
1 parent c01d4d7 commit 6639a47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,9 +1672,6 @@ TextureHandle RenderTransparency(RenderGraph renderGraph,
16721672
// Combine volumetric clouds with prerefraction transparents
16731673
m_VolumetricClouds.CombineVolumetricClouds(renderGraph, hdCamera, colorBuffer, prepassOutput.resolvedDepthBuffer, transparentPrepass, ref opticalFogTransmittance);
16741674

1675-
// Compose the lines if the user wants lines in the color pyramid (refraction), but after clouds.
1676-
ComposeLines(renderGraph, hdCamera, colorBuffer, prepassOutput.resolvedDepthBuffer, prepassOutput.motionVectorsBuffer, (int)LineRendering.CompositionMode.BeforeColorPyramidAfterClouds);
1677-
16781675
var preRefractionList = renderGraph.CreateRendererList(PrepareForwardTransparentRendererList(cullingResults, hdCamera, true));
16791676
var refractionList = renderGraph.CreateRendererList(PrepareForwardTransparentRendererList(cullingResults, hdCamera, false));
16801677

@@ -1686,6 +1683,9 @@ TextureHandle RenderTransparency(RenderGraph renderGraph,
16861683
// If required, render the water debug view
16871684
m_WaterSystem.RenderWaterDebug(renderGraph, hdCamera, colorBuffer, prepassOutput.depthBuffer, transparentPrepass.waterGBuffer);
16881685

1686+
// Compose the lines if the user wants lines in the color pyramid (refraction), but after clouds.
1687+
ComposeLines(renderGraph, hdCamera, colorBuffer, prepassOutput.resolvedDepthBuffer, prepassOutput.motionVectorsBuffer, (int)LineRendering.CompositionMode.BeforeColorPyramidAfterClouds);
1688+
16891689
bool ssmsEnabled = Fog.IsMultipleScatteringEnabled(hdCamera, out float fogMultipleScatteringIntensity);
16901690
if (hdCamera.frameSettings.IsEnabled(FrameSettingsField.Refraction) || hdCamera.IsSSREnabled() || hdCamera.IsSSREnabled(true) || hdCamera.IsSSGIEnabled() || ssmsEnabled)
16911691
{

Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/LineRendering/Core/LineRendering.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public enum CompositionMode
2323
{
2424
/// <summary>Composition will occur before the color pyramid is generated.</summary>
2525
BeforeColorPyramid = 0,
26-
/// <summary>Composition will occur before the color pyramid is generated but after clouds are composited.</summary>
26+
/// <summary>Composition will occur before the color pyramid is generated but after clouds and water are composited.</summary>
2727
BeforeColorPyramidAfterClouds = 3,
2828
/// <summary>Composition will occur after temporal anti-aliasing.</summary>
2929
AfterTemporalAntialiasing = 1,

0 commit comments

Comments
 (0)