Polygon offset (depth bias) is not mapped to Metal #18
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T09:20:53Z.
The depth bias fields of the rasterizer state are not passed to Metal (setDepthBias:slopeScale:clamp:). Decals and shadow maps will z-fight once the 3D world renders. Read the bias from the register image along with cull, depth and stencil.
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-26T10:53:24Z.
Partial progress: #25 merged to
main, sovictory-metalnow callssetDepthBias:slopeScale:clamp:on every draw (zero bias resets prior bias in the same pass).Remaining work for this issue: decode the depth bias fields from the 0x1c8 register image into
Graphics::guess_fromfor guessed pipelines.