diff --git a/intern/cycles/util/util_transform.h b/intern/cycles/util/util_transform.h index 9cde410edc8..e2b022dc478 100644 --- a/intern/cycles/util/util_transform.h +++ b/intern/cycles/util/util_transform.h @@ -173,8 +173,8 @@ __device_inline Transform transform_euler(float3 euler) { return transform_rotate(euler.x, make_float3(1.0f, 0.0f, 0.0f)) * - transform_rotate(euler.y, make_float3(1.0f, 0.0f, 0.0f)) * - transform_rotate(euler.z, make_float3(1.0f, 0.0f, 0.0f)); + transform_rotate(euler.y, make_float3(0.0f, 1.0f, 0.0f)) * + transform_rotate(euler.z, make_float3(0.0f, 0.0f, 1.0f)); } __device_inline Transform transform_orthographic(float znear, float zfar)