mirror of
https://github.com/AxioDL/boo.git
synced 2025-05-14 19:31:20 +00:00
Use GEQUAL compare for Metal depth compare
This commit is contained in:
parent
2ec943f0b2
commit
21548bada8
@ -503,7 +503,7 @@ class MetalShaderPipeline : public IShaderPipeline
|
|||||||
|
|
||||||
MTLDepthStencilDescriptor* dsDesc = [MTLDepthStencilDescriptor new];
|
MTLDepthStencilDescriptor* dsDesc = [MTLDepthStencilDescriptor new];
|
||||||
if (depthTest)
|
if (depthTest)
|
||||||
dsDesc.depthCompareFunction = MTLCompareFunctionGreater;
|
dsDesc.depthCompareFunction = MTLCompareFunctionGreaterEqual;
|
||||||
dsDesc.depthWriteEnabled = depthWrite;
|
dsDesc.depthWriteEnabled = depthWrite;
|
||||||
m_dsState = [ctx->m_dev newDepthStencilStateWithDescriptor:dsDesc];
|
m_dsState = [ctx->m_dev newDepthStencilStateWithDescriptor:dsDesc];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user