Skip to content

Commit

Permalink
DX12 : Fix depth clip
Browse files Browse the repository at this point in the history
  • Loading branch information
TothBenoit committed Oct 21, 2024
1 parent 18b1f3c commit 902f474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h3d/impl/DX12Driver.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 902f474

Please sign in to comment.