Fix #135191: Overlay: Edit Mesh: Face selection Z-fighting with edit cage

The offset was not applied inside the vertex shader for
the edit Face selection overlay. Making the offset apply
to this shader fixes the issue.
This commit is contained in:
Clément Foucault
2025-03-03 16:21:00 +01:00
parent 6a3642cb1f
commit 3653fe9524

View File

@@ -107,9 +107,9 @@ void main()
finalColor.rgb = mix(finalColor.rgb,
non_linear_blend_color(colorEditMeshMiddle.rgb, finalColor.rgb, facing),
fresnelMixEdit);
#endif
gl_Position.z -= ndc_offset_factor * ndc_offset;
#endif
view_clipping_distances(world_pos);
}