Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2022-04-15 14:43:19 +0300
committerClément Foucault <foucault.clem@gmail.com>2022-04-15 15:05:18 +0300
commit25196f8a369c354bf870b6144e3f43aa0a1d38e0 (patch)
tree31580f393b6be82bcd68b5e1981d0c5b77b1033f /source/blender/draw/engines/eevee/eevee_lightprobes.c
parent2839fe9a4d30c5737ab5075d0610c54568688fcb (diff)
EEVEE: Support disabling all lightprobe object contribution in viewport
This is supported throught the visibility toggle. The light cache will then only be used for world lighting. This is the behavior as light objects.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_lightprobes.c')
-rw-r--r--source/blender/draw/engines/eevee/eevee_lightprobes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_lightprobes.c b/source/blender/draw/engines/eevee/eevee_lightprobes.c
index 219c44de9dc..94915180483 100644
--- a/source/blender/draw/engines/eevee/eevee_lightprobes.c
+++ b/source/blender/draw/engines/eevee/eevee_lightprobes.c
@@ -1193,6 +1193,11 @@ void EEVEE_lightprobes_refresh_planar(EEVEE_ViewLayerData *sldata, EEVEE_Data *v
common_data->ssrefract_toggle = false;
common_data->sss_toggle = false;
+ if (vedata->stl->g_data->disable_ligthprobes) {
+ sldata->common_data.prb_num_render_cube = 1;
+ sldata->common_data.prb_num_render_grid = 1;
+ }
+
common_data->ray_type = EEVEE_RAY_GLOSSY;
common_data->ray_depth = 1.0f;
/* Planar reflections are rendered at the `hiz` resolution, so no need to scaling. */