diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-03-18 03:55:41 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-03-18 03:56:34 +0300 |
commit | 4137f30928dcfda4539d3d80df2c3e079eed12ec (patch) | |
tree | b5b7fb2cef587ea9c2cdd5789350d42b3f71a9ce /source/blender/draw/modes/edit_mesh_mode.c | |
parent | cddde85f2c5f25f3672a9c985b5174b19670e7af (diff) |
Object Mode: Add stencil test to remove object outlines inside the silouhette.
It also adds nice occluded silouhette information for selected objects that are behind visible objects.
This methods is really heavy because it needs to render the wires twices.
Diffstat (limited to 'source/blender/draw/modes/edit_mesh_mode.c')
-rw-r--r-- | source/blender/draw/modes/edit_mesh_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/modes/edit_mesh_mode.c b/source/blender/draw/modes/edit_mesh_mode.c index 40404b2daff..b0e1dc1d022 100644 --- a/source/blender/draw/modes/edit_mesh_mode.c +++ b/source/blender/draw/modes/edit_mesh_mode.c @@ -396,7 +396,7 @@ static void EDIT_MESH_draw_scene(void) /* Render wires on a separate framebuffer */ DRW_framebuffer_bind(fbl->occlude_wire_fb); - DRW_framebuffer_clear(true, true, clearcol, 1.0f); + DRW_framebuffer_clear(true, true, false, clearcol, 1.0f); DRW_draw_pass(psl->normals); DRW_draw_pass(psl->edit_face_occluded); |