Blender Git Commit Log
Git Commits -> Revision 4260823
Revision 4260823 by Clément Foucault (eevee-rewrite, temp-eevee-gpencil-rewrite, viewport-compositor) June 8, 2021, 20:09 (GMT) |
EEVEE: GPencil: Finish geometry support This port the facing "flat" normal trick used by the gpencil engine to EEVEE as well as the thickness mode. The objects parameters are passed via the objectInfos UBO to avoid much boiler plate code. However if this UBO grows too much we might have to split it. The normal trick for planar surfaces is quite simple to port to the vertex shader even if it is less efficient. However to compute it we need the objects bounds. This is passed as a scale only through the orco factors. This will needs a bit of cleaning at some points, with boundbox computed at object level. |
Commit Details:
Full Hash: 4260823e1e7bc1accc8b51cc7292bf6f50992f93
Parent Commit: 89a002c
Lines Changed: +84, -18
12 Modified Paths:
/source/blender/draw/engines/eevee/eevee_shader.cc (+4, -2) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_surface_gpencil_vert.glsl (+2, -5) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_surface_lib.glsl (+3, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+0, -3) (Diff)
/source/blender/draw/intern/draw_manager.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+23, -0) (Diff)
/source/blender/draw/intern/draw_manager_exec.c (+11, -3) (Diff)
/source/blender/draw/intern/shaders/common_gpencil_lib.glsl (+28, -4) (Diff)
/source/blender/draw/intern/shaders/common_obinfos_lib.glsl (+5, -0) (Diff)
/source/blender/draw/intern/shaders/common_view_lib.glsl (+2, -0) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_world_normals.glsl (+1, -1) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+3, -0) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_surface_gpencil_vert.glsl (+2, -5) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_surface_lib.glsl (+3, -0) (Diff)
/source/blender/draw/engines/gpencil/gpencil_engine.h (+0, -3) (Diff)
/source/blender/draw/intern/draw_manager.h (+2, -0) (Diff)
/source/blender/draw/intern/draw_manager_data.c (+23, -0) (Diff)
/source/blender/draw/intern/draw_manager_exec.c (+11, -3) (Diff)
/source/blender/draw/intern/shaders/common_gpencil_lib.glsl (+28, -4) (Diff)
/source/blender/draw/intern/shaders/common_obinfos_lib.glsl (+5, -0) (Diff)
/source/blender/draw/intern/shaders/common_view_lib.glsl (+2, -0) (Diff)
/source/blender/gpu/shaders/material/gpu_shader_material_world_normals.glsl (+1, -1) (Diff)
/source/blender/makesdna/DNA_gpencil_types.h (+3, -0) (Diff)