mirror of https://github.com/AxioDL/boo.git
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];
|
||||
if (depthTest)
|
||||
dsDesc.depthCompareFunction = MTLCompareFunctionGreater;
|
||||
dsDesc.depthCompareFunction = MTLCompareFunctionGreaterEqual;
|
||||
dsDesc.depthWriteEnabled = depthWrite;
|
||||
m_dsState = [ctx->m_dev newDepthStencilStateWithDescriptor:dsDesc];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue