From 902f474a73d98038b454f1dca522f40622e2230e Mon Sep 17 00:00:00 2001 From: TothBenoit Date: Mon, 21 Oct 2024 16:36:03 +0200 Subject: [PATCH] DX12 : Fix depth clip --- h3d/impl/DX12Driver.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h3d/impl/DX12Driver.hx b/h3d/impl/DX12Driver.hx index e2455d93b..fa3ebff80 100644 --- a/h3d/impl/DX12Driver.hx +++ b/h3d/impl/DX12Driver.hx @@ -2095,7 +2095,7 @@ class DX12Driver extends h3d.impl.Driver { p.depthStencilDesc.depthFunc = COMP[pass.depthTest.getIndex()]; p.rasterizerState.depthBias = Std.int(depth.bias); p.rasterizerState.slopeScaledDepthBias = depth.slopeScaledBias; - p.rasterizerState.depthClipEnable = depth.clamp; + p.rasterizerState.depthClipEnable = !depth.clamp; var bl = p.blendState; for( i in 0...rtCount ) {