Blender Git Commit Log

Git Commits -> Revision 86193d2

Revision 86193d2 by Clément Foucault (master)
February 5, 2019, 14:02 (GMT)
Edit Mesh: Refactor Edit cage drawing to use old style drawing

This is work in progress. Look is not final.

This align data VBO data structure used for edti cage drawing to the one
use for normal drawing.

We no longer use barycentric coords to draw the lines an just rasterize
line primitives for edge drawing. This is a bit slower than using the
previous fast method but faster than the "correct" (edge artifact free)
method. This also make the code way simpler.

This also makes it possible to reuse possible and normal vbos used for
shading if the edit cage matches the

This also touches the UV batch code to share as much render data as
possible. The code also prepare for edit cage "modified" drawing cage (with
modifier applied) but is not enabled since selection and operators does not
work with modified cage yet.

Commit Details:

Full Hash: 86193d25dbe5470a465dd91655c6aeaabab19b21
Parent Commit: f3f2602
Lines Changed: +869, -1409

18 Modified Paths:

/source/blender/draw/intern/draw_cache_impl.h (+17, -18) (Diff)
/source/blender/draw/intern/draw_cache_impl_curve.c (+4, -4) (Diff)
/source/blender/draw/intern/draw_cache_impl_lattice.c (+2, -2) (Diff)
/source/blender/draw/intern/draw_cache_impl_mesh.c (+588, -913) (Diff)
/source/blender/draw/modes/edit_mesh_mode.c (+80, -192) (Diff)
/source/blender/draw/modes/shaders/common_globals_lib.glsl (+18, -0) (Diff)
/source/blender/draw/modes/shaders/edit_curve_overlay_handle_geom.glsl (+2, -4) (Diff)
/source/blender/draw/modes/shaders/edit_curve_overlay_loosevert_vert.glsl (+2, -5) (Diff)
/source/blender/draw/modes/shaders/edit_lattice_overlay_frag.glsl (+2, -5) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_common_lib.glsl (+44, -22) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_facefill_vert.glsl (+0, -4) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_frag.glsl (+21, -139) (Diff)
/source/blender/draw/modes/shaders/edit_mesh_overlay_vert.glsl (+67, -83) (Diff)
/source/blender/draw/modes/shaders/paint_vert_frag.glsl (+0, -4) (Diff)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_edges_vert.glsl (+6, -4) (Diff)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_facedots_vert.glsl (+4, -2) (Diff)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_faces_vert.glsl (+6, -4) (Diff)
/source/blender/gpu/shaders/gpu_shader_2D_edituvs_points_vert.glsl (+6, -4) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021