reset depth bias

This commit is contained in:
Samuliak 2024-08-14 21:23:18 +02:00
parent be98734358
commit ed7354fa1b

View File

@ -752,6 +752,10 @@ void MetalRenderer::draw_execute(uint32 baseVertex, uint32 baseInstance, uint32
renderCommandEncoder->setDepthBias(frontOffset, frontScale, offsetClamp);
}
else
{
renderCommandEncoder->setDepthBias(0.0f, 0.0f, 0.0f);
}
// todo - how does culling behave with rects?
// right now we just assume that their winding is always CW