Fix T74290 Face Dots in front (X-ray) Visual Glitch
This is not likely to be the silver bullet but it fix the common case.
This commit is contained in:
parent
76e252ead3
commit
81fb08ad57
Notes:
blender-bot
2023-02-14 06:54:28 +01:00
Referenced by issue #74290, Face Dots in front (X-ray) Visual Glitch
|
@ -83,7 +83,7 @@ void main()
|
|||
finalColor = EDIT_MESH_facedot_color(norAndFlag.w);
|
||||
|
||||
/* Bias Facedot Z position in clipspace. */
|
||||
gl_Position.z -= 0.00035;
|
||||
gl_Position.z -= (ProjectionMatrix[3][3] == 0.0) ? 0.00035 : 1e-6;
|
||||
gl_PointSize = sizeFaceDot;
|
||||
|
||||
bool occluded = test_occlusion();
|
||||
|
|
Loading…
Reference in New Issue