Blender Git Loki

Git Commits -> Revision 3caf7ba

June 5, 2021, 13:29 (GMT)
EEVEE: Lookdev: Add back lighting support

This does not include reference spheres rendering.

The approach is a bit different than before.
Now we use a `bNodeTree` to control the rendering of lookdev. This
generates a `GPUMaterial` that is stored per `Instance`. This way
rendering lookdev is just updating the temp light cache using this
material as world material. Removing the use of custom shader.

This introduces a small hack in order to bind the studiolight hdri after
the nodetree glsl parsing.

The background display however is still using a custom shader in order
to sample the world cubemap with different roughness.

The view space option of the studiolight is now faster by using a
transform before shading instead of rebaking the lightprobe constantly.
This should not have any particular impact on render time.

Commit Details:

Full Hash: 3caf7ba32de00a3c354a4a13dd078e790d056ebe
Parent Commit: b3084d2
Lines Changed: +480, -21

3 Added Paths:

/source/blender/draw/engines/eevee/eevee_lookdev.cc (+235, -0) (View)
/source/blender/draw/engines/eevee/eevee_lookdev.hh (+98, -0) (View)
/source/blender/draw/engines/eevee/shaders/eevee_lookdev_background_frag.glsl (+38, -0) (View)

17 Modified Paths:

/source/blender/draw/CMakeLists.txt (+2, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_instance.cc (+5, -3) (Diff)
/source/blender/draw/engines/eevee/eevee_instance.hh (+22, -2) (Diff)
/source/blender/draw/engines/eevee/eevee_lightprobe.cc (+3, -2) (Diff)
/source/blender/draw/engines/eevee/eevee_shader.cc (+32, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_shader.hh (+8, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_shader_shared.hh (+2, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_shading.cc (+5, -1) (Diff)
/source/blender/draw/engines/eevee/eevee_shading.hh (+1, -1) (Diff)
/source/blender/draw/engines/eevee/eevee_view.cc (+3, -1) (Diff)
/source/blender/draw/engines/eevee/eevee_world.cc (+5, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_lightprobe_eval_cubemap_lib.glsl (+3, -0) (Diff)
/source/blender/draw/engines/eevee/shaders/eevee_lightprobe_eval_grid_lib.glsl (+4, -0) (Diff)
/source/blender/draw/intern/draw_manager_shader.c (+2, -0) (Diff)
/source/blender/gpu/GPU_material.h (+4, -8) (Diff)
/source/blender/gpu/intern/gpu_material.c (+4, -0) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_environment.c (+4, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021