Blender Git Loki
Git Commits -> Revision 03d0219
Revision 03d0219 by Clément Foucault (master) October 12, 2018, 14:43 (GMT) |
Edit Mesh: Refactor edit mesh drawing This decouple the vertex display from the face+edges. This is to reduce the number of triangles required to fix the edges artifacts (aliasing) and increase viewport reactivity when not actively navigating (ie. mouse scroll). Also it makes all vertices visible (not cut-off) even when navigating. However it makes the navigation drawing a bit slower because it has to render twice. Also add a depth bias to the wires to avoid depth fighting when previewing final mesh (modifiers applied). |
Commit Details:
Full Hash: 03d0219d7ae5916500a45b157bd7a637310ef494
Parent Commit: fe4840e
Lines Changed: +303, -164
1 Added Path:
/source/blender/draw/modes/shaders/edit_mesh_overlay_points_vert.glsl (+41, -0) (View)
1 Deleted Path:
/source/blender/draw/modes/shaders/edit_mesh_overlay_loosevert_vert.glsl (+0, -52)
11 Modified Paths:
/source/blender/draw/CMakeLists.txt (+1, -1) (Diff)
/source/blender/draw/intern/draw_cache.c (+3, -1) (Diff)
/source/blender/draw/intern/draw_cache.h (+2, -1) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+86, -6) (Diff)
/source/blender/draw/modes/edit_mesh_mode.c (+57, -19) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_common_lib.glsl (+4, -0) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_frag.glsl (+14, -17) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_geom_edge.glsl (+8, -12) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl (+8, -43) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_vert.glsl (+77, -12) (Diff)
/source/blender/draw/intern/draw_cache.c (+3, -1) (Diff)
/source/blender/draw/intern/draw_cache.h (+2, -1) (Diff)
/source/blender/draw/intern/draw_cache_impl.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+86, -6) (Diff)
/source/blender/draw/modes/edit_mesh_mode.c (+57, -19) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_common_lib.glsl (+4, -0) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_frag.glsl (+14, -17) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_geom_edge.glsl (+8, -12) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_geom_tri.glsl (+8, -43) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_vert.glsl (+77, -12) (Diff)