Fix #147542: Overlay: Curve Sculpt Mode: Z-fighting with Cage overlay

The overlay just needed a bit of Z bias to avoid Z fighting.
This commit is contained in:
Clément Foucault
2025-10-09 19:35:41 +02:00
parent bfb0d2ad20
commit 73645a1047

View File

@@ -14,6 +14,8 @@ void main()
{
float3 world_pos = drw_point_object_to_world(pos);
gl_Position = drw_point_world_to_homogenous(world_pos);
/* Small bias to always be on top of the geom. */
gl_Position.z -= 1e-3f;
final_color = float4(selection);
final_color.a *= opacity;