This still isn't working right

Depth comparison is still wrong on metal, probably a one liner somewhere/a configuration option
This commit is contained in:
EmeraldLockdown 2026-07-01 09:27:02 -05:00
parent 8f10830410
commit 4b67de0769

View file

@ -910,9 +910,7 @@ void gfx_metal_draw_triangles(float buf_vbo[], size_t buf_vbo_len, size_t buf_vb
metal.encoder->setFrontFacingWinding(MTL::WindingCounterClockwise);
if (metal.zModeDecal) {
// dx11 units of -2.0f on a 24-bit fixed pass are going to be larger here
// todo: should be fine tuned
metal.encoder->setDepthBias(-4.0f, -1.5f, 0.0f);
metal.encoder->setDepthBias(0.0f, -2.0f, 0.0f);
} else {
metal.encoder->setDepthBias(0.0f, 0.0f, 0.0f);
}