Blender Git Loki
Git Commits -> Revision 209ab8c
Revision 209ab8c by Clément Foucault (eevee-rewrite, temp-eevee-gpencil-rewrite, viewport-compositor) June 19, 2021, 23:28 (GMT) |
EEVEE: Cleanup: Replace lighting evaluation macro by functions The functions need to be declared before main as prototypes. The appended libs will use the resources (textures, UBOs) defined at global scope. This removes a bit of code duplication and some long macros. |
Commit Details:
Full Hash: 209ab8c42497650d6b2f7679a7f411c16f17c8b1
Parent Commit: 94f813d
Lines Changed: +174, -170
1 Added Path:
/source/blender/draw/engines/eevee/shaders/eevee_light_eval_lib.glsl (+64, -0) (View)
8 Modified Paths:
/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_shader.cc (+9, -7) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_deferred_direct_frag.glsl (+23, -41) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_deferred_volume_frag.glsl (+0, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_lightprobe_eval_cubemap_lib.glsl (+28, -13) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_lightprobe_eval_grid_lib.glsl (+28, -13) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_light_lib.glsl (+0, -44) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_surface_forward_frag.glsl (+21, -51) (Diff)
/source/blender/draw/engines/eevee/eevee_shader.cc (+9, -7) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_deferred_direct_frag.glsl (+23, -41) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_deferred_volume_frag.glsl (+0, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_lightprobe_eval_cubemap_lib.glsl (+28, -13) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_lightprobe_eval_grid_lib.glsl (+28, -13) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_light_lib.glsl (+0, -44) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_surface_forward_frag.glsl (+21, -51) (Diff)