Blender Git Commit Log
Git Commits -> Revision 12034dc
Revision 12034dc by Clément Foucault (greasepencil-object, greasepencil-refactor, temp-gpencil-eval) December 7, 2019, 13:56 (GMT) |
GPencil: Refactor: Add new logic to create batches and store draw passes We introduce a new set of temp objects (GPENCIL_tVfx, GPENCIL_tLayer, GPENCIL_tObject) allocated in BLI_memblocks to allow fast traversal and easy memory management. We also introduce an iterator to iterate over visible strokes of an object to avoid code duplication. Strokes are all in one batch and the fill batch will only contain indices to the stroke buffer. For now the objects are only drawn at the center only with white 1px stroke and all strokes are not interupted (the finish at center). |
Commit Details:
Full Hash: 12034dc4aafc0c623ef057b71473e6cd693044d2
Parent Commit: e6fc0a3
Lines Changed: +591, -7
4 Added Paths:
/source/blender/draw/engines/gpencil/gpencil_shader.c (+52, -0) (View)
/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl (+0, -0) (View)
/source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl (+7, -0) (View)
/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl (+7, -0) (View)
/source/blender/draw/engines/gpencil/shaders/gpencil_common_lib.glsl (+0, -0) (View)
/source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl (+7, -0) (View)
/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl (+7, -0) (View)
7 Modified Paths:
/source/blender/draw/CMakeLists.txt (+5, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_cache_utils.c (+35, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+184, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_utils.c (+120, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+104, -6) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+76, -0) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+1, -1) (Diff)
/source/blender/draw/engines/gpencil/gpencil_cache_utils.c (+35, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+184, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_utils.c (+120, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+104, -6) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+76, -0) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+1, -1) (Diff)