Light linking: Support distant lights for shadow linking #107979

Merged
Sergey Sharybin merged 2 commits from Sergey/blender:cycles-light-linking-distant into cycles-light-linking 2023-05-16 17:59:59 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 8c1a5218a1 - Show all commits

View File

@ -336,7 +336,7 @@ ccl_device_forceinline int lights_intersect_impl(KernelGlobals kg,
}
}
else if (type == LIGHT_DISTANT) {
if constexpr (is_main_path) {
if (is_main_path) {

Can't use constexpr.

Can't use constexpr.
continue;
}
if (!distant_light_intersect(klight, ray, &t, &u, &v)) {