Blender Git Commit Log
Git Commits -> Revision 5b6cfa7
Revision 5b6cfa7 by Clément Foucault (master) December 4, 2017, 09:10 (GMT) |
Eevee: Irradiance Visibility: Initial Implementation This augment the existing irradiance grid with a new visibility precomputation. We store a small shadowmap for each grid sample so that light does not leak through walls and such. The visibility parameter are similar to the one used by the Variance Shadow Map for point lights. Technical details: We store the visibility in the same texture (array) as the irradiance itself (in order to reduce the number of sampler). But the irradiance and the visibility are not the same data so we must encode them in order to use the same texture format. We use RGBA8 normalized texture and encode irradiance as RGBE (shared exponent). Using RGBE encoding instead of R11_G11_B10 may lead to some lighting changes, but quality seems to be nearly the same in my test cases. Using full RGBA16/32F maybe a future option but that will require much more memory and reduce the perf significantly. Visibility moments (VSM) are encoded as 16bits fixed point precision using a special range. This seems to retain enough precision for the needs. Also interpolation does not seems to be big problem (even though it's incorrect). |
Commit Details:
Full Hash: 5b6cfa705cb180d042f6f27e45331c12972be7ae
Parent Commit: 847f568
Lines Changed: +358, -56
1 Added Path:
/source/blender/draw/engines/eevee/shaders/lightprobe_filter_visibility_frag.glsl (+88, -0) (View)
13 Modified Paths:
/source/blender/draw/CMakeLists.txt (+1, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_data.c (+1, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_lightprobes.c (+104, -35) (Diff)
/source/blender/draw/engines/eevee/eevee_materials.c (+1, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_private.h (+8, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_volumes.c (+1, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl (+72, -0) (Diff)
/source/blender/draw/engines/eevee/shaders/bsdf_sampling_lib.glsl (+14, -0) (Diff)
/source/blender/draw/engines/eevee/shaders/irradiance_lib.glsl (+50, -14) (Diff)
/source/blender/draw/engines/eevee/shaders/lightprobe_filter_diffuse_frag.glsl (+1, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/lightprobe_grid_fill_frag.glsl (+2, -2) (Diff)
/source/blender/draw/engines/eevee/shaders/lightprobe_lib.glsl (+11, -3) (Diff)
/source/blender/draw/engines/eevee/shaders/volumetric_lib.glsl (+4, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_data.c (+1, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_lightprobes.c (+104, -35) (Diff)
/source/blender/draw/engines/eevee/eevee_materials.c (+1, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_private.h (+8, -0) (Diff)
/source/blender/draw/engines/eevee/eevee_volumes.c (+1, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/bsdf_common_lib.glsl (+72, -0) (Diff)
/source/blender/draw/engines/eevee/shaders/bsdf_sampling_lib.glsl (+14, -0) (Diff)
/source/blender/draw/engines/eevee/shaders/irradiance_lib.glsl (+50, -14) (Diff)
/source/blender/draw/engines/eevee/shaders/lightprobe_filter_diffuse_frag.glsl (+1, -1) (Diff)
/source/blender/draw/engines/eevee/shaders/lightprobe_grid_fill_frag.glsl (+2, -2) (Diff)
/source/blender/draw/engines/eevee/shaders/lightprobe_lib.glsl (+11, -3) (Diff)
/source/blender/draw/engines/eevee/shaders/volumetric_lib.glsl (+4, -0) (Diff)