mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-10 05:57:41 +00:00
Use GEQUAL compare for Metal depth compare
This commit is contained in:
@@ -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];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user