[Bf-blender-cvs] [dcce4a59a05] blender-v3.2-release: Fix T97966: Cycles shadow terminator offset wrong for scaled object instances

Mikhail Matrosov noreply at git.blender.org
Tue May 10 19:22:27 CEST 2022


Commit: dcce4a59a05245807a4b9a50cc331ce307674981
Author: Mikhail Matrosov
Date:   Tue May 10 18:52:00 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rBdcce4a59a05245807a4b9a50cc331ce307674981

Fix T97966: Cycles shadow terminator offset wrong for scaled object instances

Differential Revision: https://developer.blender.org/D14893

===================================================================

M	intern/cycles/kernel/light/sample.h

===================================================================

diff --git a/intern/cycles/kernel/light/sample.h b/intern/cycles/kernel/light/sample.h
index 5acfc92cca1..9bbbd5b0d10 100644
--- a/intern/cycles/kernel/light/sample.h
+++ b/intern/cycles/kernel/light/sample.h
@@ -143,7 +143,7 @@ ccl_device_inline float3 shadow_ray_smooth_surface_offset(
   float3 n = N[0] * u + N[1] * v + N[2] * w; /* We get away without normalization */
 
   if (!(sd->object_flag & SD_OBJECT_TRANSFORM_APPLIED)) {
-    object_normal_transform(kg, sd, &n); /* Normal x scale, world space */
+    object_dir_transform(kg, sd, &n); /* Normal x scale, to world space */
   }
 
   /* Parabolic approximation */



More information about the Bf-blender-cvs mailing list