[Bf-blender-cvs] [148f3550039] temp-gpencil-bezier-stroke-type: Fix T87324: incorrect parametric coordinates with light spread
Brecht Van Lommel
noreply at git.blender.org
Tue Apr 13 11:29:19 CEST 2021
Commit: 148f355003911ef71c65e753c286ff58818aaf05
Author: Brecht Van Lommel
Date: Mon Apr 12 16:34:50 2021 +0200
Branches: temp-gpencil-bezier-stroke-type
https://developer.blender.org/rB148f355003911ef71c65e753c286ff58818aaf05
Fix T87324: incorrect parametric coordinates with light spread
===================================================================
M intern/cycles/kernel/kernel_light.h
===================================================================
diff --git a/intern/cycles/kernel/kernel_light.h b/intern/cycles/kernel/kernel_light.h
index f288ca3051a..42a834d2ce3 100644
--- a/intern/cycles/kernel/kernel_light.h
+++ b/intern/cycles/kernel/kernel_light.h
@@ -135,6 +135,8 @@ ccl_device_inline bool lamp_light_sample(
ls->pdf = invarea;
}
else {
+ inplane = ls->P;
+
float3 sample_axisu = axisu;
float3 sample_axisv = axisv;
@@ -145,7 +147,6 @@ ccl_device_inline bool lamp_light_sample(
}
}
- inplane = ls->P;
ls->pdf = rect_light_sample(P, &ls->P, sample_axisu, sample_axisv, randu, randv, true);
inplane = ls->P - inplane;
}
More information about the Bf-blender-cvs
mailing list