Fix #105830: Add depth bias for overlay faces in Metal #108046

Closed
Jason Fielder wants to merge 1 commits from Jason-Fielder/blender:Fix_105830 into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 5 additions and 0 deletions

View File

@ -74,6 +74,11 @@ void main()
finalColor = EDIT_MESH_face_color(m_data.x);
bool occluded = true;
# ifdef GPU_METAL
/* Apply depth bias to overlay in order to prevent z-fighting on Apple Silicon GPUs. */
gl_Position.z -= 5e-5;
# endif
#elif defined(FACEDOT)
finalColor = EDIT_MESH_facedot_color(norAndFlag.w);