Edit Mode: Increase depth Bias for vertices
authorClément Foucault <foucault.clem@gmail.com>
Tue, 5 Feb 2019 15:12:50 +0000 (16:12 +0100)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 5 Feb 2019 15:12:50 +0000 (16:12 +0100)
source/blender/draw/modes/edit_mesh_mode.c

index b8e05a8eb2c91ba1af71d78c59f38462b2c0d07c..368edb7d0679939a4c59da0009de62e7e16b52c6 100644 (file)
@@ -334,7 +334,7 @@ static DRWPass *edit_mesh_create_overlay_pass(
                DRW_shgroup_uniform_block(grp, "globalsBlock", G_draw.block_ubo);
                DRW_shgroup_uniform_vec2(grp, "viewportSize", DRW_viewport_size_get(), 1);
                DRW_shgroup_uniform_float(grp, "edgeScale", edge_width_scale, 1);
-               DRW_shgroup_uniform_float_copy(grp, "ofs", depth_ofs);
+               DRW_shgroup_uniform_float_copy(grp, "ofs", depth_ofs * 1.5f);
                DRW_shgroup_state_enable(grp, DRW_STATE_OFFSET_NEGATIVE | DRW_STATE_WRITE_DEPTH);
                DRW_shgroup_state_disable(grp, DRW_STATE_BLEND);
                if (rv3d->rflag & RV3D_CLIPPING) {