diff options
author | Mikhail Matrosov <ktdfly> | 2022-05-10 19:52:00 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-05-10 19:53:14 +0300 |
commit | dcce4a59a05245807a4b9a50cc331ce307674981 (patch) | |
tree | 80f460a91123e2cef6c16e25d543da6bbd6d6b08 /intern | |
parent | dc55e095e6f2836c65f83c9b1bad2f7d9d98022d (diff) |
Fix T97966: Cycles shadow terminator offset wrong for scaled object instances
Differential Revision: https://developer.blender.org/D14893
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/light/sample.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |