diff options
author | Brecht Van Lommel <brecht@blender.org> | 2021-07-05 12:05:40 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-07-05 12:26:40 +0300 |
commit | bb971bead9a88a216845e194e50e197c125f2598 (patch) | |
tree | 9be45d6c30ad1a9e017bfca6314672afc6818811 /intern | |
parent | e785569c95f94ab4df99537b52afa8f14affd181 (diff) |
Fix T89523: Cycles OpenCL compile error after shadow terminator changes
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/bvh/bvh_util.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/intern/cycles/kernel/bvh/bvh_util.h b/intern/cycles/kernel/bvh/bvh_util.h index 6c152cbb249..867ea3af8d1 100644 --- a/intern/cycles/kernel/bvh/bvh_util.h +++ b/intern/cycles/kernel/bvh/bvh_util.h @@ -86,8 +86,7 @@ ccl_device_inline float3 smooth_surface_offset(KernelGlobals *kg, ShaderData *sd float3 P = V[0] * u + V[1] * v + V[2] * w; /* Local space */ float3 n = N[0] * u + N[1] * v + N[2] * w; /* We get away without normalization */ - n = normalize( - transform_direction_transposed_auto(&sd->ob_itfm, n)); /* Normal x scale, world space */ + object_normal_transform(kg, sd, &n); /* Normal x scale, world space */ /* Parabolic approximation */ float a = dot(N[2] - N[0], V[0] - V[2]); |