diff options
author | Thomas Dinges <blender@dingto.org> | 2021-12-14 22:01:30 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2021-12-14 22:01:30 +0300 |
commit | 7e8912eb969742f9fb12e9d53f3fd1ec968d7032 (patch) | |
tree | 2d21fb77e2f484afa3235d0ff6968f7f5389605a /intern/cycles | |
parent | 5b61737a8f41688699fd1d711a25b7cea86d1530 (diff) |
Fix Cycles compilation with CUDA / Optix after recent Map Range additions.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/kernel/svm/map_range.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/svm/map_range.h b/intern/cycles/kernel/svm/map_range.h index bc5dcbd0238..933ea84f939 100644 --- a/intern/cycles/kernel/svm/map_range.h +++ b/intern/cycles/kernel/svm/map_range.h @@ -138,7 +138,7 @@ ccl_device_noinline int svm_node_vector_map_range(KernelGlobals kg, case NODE_MAP_RANGE_SMOOTHSTEP: { factor = safe_divide_float3_float3((value - from_min), (from_max - from_min)); factor = clamp(factor, zero_float3(), one_float3()); - factor = (make_float3(3.0f) - 2.0f * factor) * (factor * factor); + factor = (make_float3(3.0f, 3.0f, 3.0f) - 2.0f * factor) * (factor * factor); break; } case NODE_MAP_RANGE_SMOOTHERSTEP: { |