[Bf-blender-cvs] [4e460bc5b36] cycles_path_guiding: Cycles: Limiting spatial resolution of the guiding caches
Sebastian Herholz
noreply at git.blender.org
Mon Oct 10 11:35:14 CEST 2022
Commit: 4e460bc5b36e3c68601f8ce8a64aacb5535df1ce
Author: Sebastian Herholz
Date: Mon Oct 10 11:31:36 2022 +0200
Branches: cycles_path_guiding
https://developer.blender.org/rB4e460bc5b36e3c68601f8ce8a64aacb5535df1ce
Cycles: Limiting spatial resolution of the guiding caches
===================================================================
M intern/cycles/integrator/path_trace.cpp
===================================================================
diff --git a/intern/cycles/integrator/path_trace.cpp b/intern/cycles/integrator/path_trace.cpp
index 6b033cfd051..c57d0e57e5e 100644
--- a/intern/cycles/integrator/path_trace.cpp
+++ b/intern/cycles/integrator/path_trace.cpp
@@ -1293,6 +1293,7 @@ void PathTrace::set_guiding_params(const GuidingParams &guiding_params, const bo
# if OPENPGL_VERSION_MINOR >= 4
field_args.deterministic = guiding_params.deterministic;
# endif
+ reinterpret_cast<PGLKDTreeArguments *>(field_args.spatialSturctureArguments)->maxDepth = 16;
openpgl::cpp::Device *guiding_device = static_cast<openpgl::cpp::Device *>(
device_->get_guiding_device());
if (guiding_device) {
More information about the Bf-blender-cvs
mailing list