diff options
Diffstat (limited to 'intern/cycles/util/util_transform.h')
-rw-r--r-- | intern/cycles/util/util_transform.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/util/util_transform.h b/intern/cycles/util/util_transform.h index e2b022dc478..e904674a981 100644 --- a/intern/cycles/util/util_transform.h +++ b/intern/cycles/util/util_transform.h @@ -34,16 +34,16 @@ typedef struct Transform { __device_inline float3 transform(const Transform *t, const float3 a) { - float4 b = {a.x, a.y, a.z, 1.0f}; - float3 c = {dot(t->x, b), dot(t->y, b), dot(t->z, b)}; + float4 b = make_float4(a.x, a.y, a.z, 1.0f); + float3 c = make_float3(dot(t->x, b), dot(t->y, b), dot(t->z, b)); return c/dot(t->w, b); } __device_inline float3 transform_direction(const Transform *t, const float3 a) { - float4 b = {a.x, a.y, a.z, 0.0f}; - float3 c = {dot(t->x, b), dot(t->y, b), dot(t->z, b)}; + float4 b = make_float4(a.x, a.y, a.z, 0.0f); + float3 c = make_float3(dot(t->x, b), dot(t->y, b), dot(t->z, b)); return c; } |