Fix T89523: Cycles OpenCL compile error after shadow terminator changes

This commit is contained in:
Brecht Van Lommel 2021-07-05 11:05:40 +02:00
parent e785569c95
commit bb971bead9
Notes: blender-bot 2023-02-14 04:40:22 +01:00
Referenced by issue #89523, 3.0 Split kernel error: failed to load kernel_path_init with OpenCL on Linux
1 changed files with 1 additions and 2 deletions

View File

@ -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]);