Skip to content

Commit

Permalink
Fix liquid depth clipping
Browse files Browse the repository at this point in the history
  • Loading branch information
alelievr committed Dec 18, 2023
1 parent 3682a30 commit bca866e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/CustomPasses/Liquid/Liquid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected override void Execute(CustomPassContext ctx)
}

var overrideDepth = new RenderStateBlock(RenderStateMask.Depth);
overrideDepth.depthState = new DepthState(false, CompareFunction.LessEqual);
overrideDepth.depthState = new DepthState(true, CompareFunction.LessEqual);
CoreUtils.SetRenderTarget(ctx.cmd, ctx.customColorBuffer.Value, ctx.cameraDepthBuffer);
CustomPassUtils.DrawRenderers(ctx, layerMask, overrideRenderState: overrideDepth);

Expand Down

0 comments on commit bca866e

Please sign in to comment.