Blender Git Loki
Git Commits -> Revision 3adcfea
Revision 3adcfea by Clément Foucault (greasepencil-object, greasepencil-refactor, temp-gpencil-eval) December 12, 2019, 21:33 (GMT) |
GPencil: Refactor: Implement Stroke self overlap option This is a novel approach were we use the depth buffer instead of the stencil buffer. This allows up to ~1e24 different indices to draw to. We use a DRW_STATE_DEPTH_GREATER to discard the fragment comming from the same stroke. Since we can have strokes that don't have this option, we use the point indices instead of the stroke index to avoid changing the state during drawing. |
Commit Details:
Full Hash: 3adcfeac9601622fd5de8cf9e32739a1c383cb41
Parent Commit: 84b1a70
Lines Changed: +74, -24
6 Modified Paths:
/source/blender/draw/engines/gpencil/gpencil_cache_utils.c (+3, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+10, -10) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_data.c (+4, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+5, -5) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl (+12, -0) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl (+40, -9) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c (+10, -10) (Diff)
/source/blender/draw/engines/gpencil/gpencil_draw_data.c (+4, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+5, -5) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_frag.glsl (+12, -0) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_vert.glsl (+40, -9) (Diff)