Blender Git Loki
Git Commits -> Revision 42580dd
Revision 42580dd by Clément Foucault (greasepencil-object, greasepencil-refactor, temp-gpencil-eval) December 21, 2019, 00:21 (GMT) |
GPencil: Refactor: Use more correct depth merge approximation for 2D object We now use a plane that follows the computed shading normal. The plane follows the camera rotation but also takes the gpobject volume into account. |
Commit Details:
Full Hash: 42580ddf92058d14e15bbf682876141a97e0b45e
Parent Commit: 685c94e
Lines Changed: +37, -9
1 Added Path:
/source/blender/draw/engines/gpencil/shaders/gpencil_depth_merge_vert.glsl (+14, -0) (View)
6 Modified Paths:
/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_cache_utils.c (+11, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+3, -2) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+3, -1) (Diff)
/source/blender/draw/engines/gpencil/gpencil_shader.c (+3, -2) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_depth_merge_frag.glsl (+2, -4) (Diff)
/source/blender/draw/engines/gpencil/gpencil_cache_utils.c (+11, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.c (+3, -2) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+3, -1) (Diff)
/source/blender/draw/engines/gpencil/gpencil_shader.c (+3, -2) (Diff)
/source/blender/draw/engines/gpencil/shaders/gpencil_depth_merge_frag.glsl (+2, -4) (Diff)