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>2021-11-23 23:24:00 +0300
committerClément Foucault <foucault.clem@gmail.com>2021-12-04 00:41:37 +0300
commit1b00ca35758dacf7ece7b95275ea3c41e53bec6c (patch)
treeb587d29f39a3cffd5c88ab86ceea674a1aaeb1b4 /source/blender/draw/engines/eevee/eevee_instance.cc
parent68b0195bf3e27ee687eb87e37257891a3a7f4e78 (diff)
EEVEE: Light: Port light culling to GPU
This removes the light count limit for the forward shaded object. This also provides a more efficient way of computing the culling directly on the GPU. Moreover, this avoids doing multiple lighting passes for high light counts in the deferred pipeline, improving performance.
Diffstat (limited to 'source/blender/draw/engines/eevee/eevee_instance.cc')
-rw-r--r--source/blender/draw/engines/eevee/eevee_instance.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_instance.cc b/source/blender/draw/engines/eevee/eevee_instance.cc
index 63c9c690180..f614d4b4a97 100644
--- a/source/blender/draw/engines/eevee/eevee_instance.cc
+++ b/source/blender/draw/engines/eevee/eevee_instance.cc
@@ -22,6 +22,7 @@
* An instance contains all structures needed to do a complete render.
*/
+#include "BKE_global.h"
#include "BKE_object.h"
#include "BLI_rect.h"
#include "DEG_depsgraph_query.h"
@@ -63,6 +64,8 @@ void Instance::init(const ivec2 &output_res,
rv3d = rv3d_;
baking_probe = light_probe_;
+ debug_mode = (eDebugMode)G.debug_value;
+
update_eval_members();
rcti render_border = output_crop(output_res, output_rect);