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

Merged
Jeroen Bakker merged 1 commits from Jason-Fielder/blender:Fix_105830_3_6 into blender-v3.6-release 2023-05-19 09:23:23 +02:00
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);