Blender V5.3
gpu_shader_material_rotation_to_euler.bsl.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
9
10[[node]]
11void rotation_to_euler(float4 rotation, float3 &euler)
12{
13 Quaternion quat = Quaternion::from_float4(rotation);
14 euler = to_euler(from_rotation(quat)).as_float3();
15}
void rotation_to_euler(float4 rotation, float3 &euler)
float2x2 from_rotation(AngleRadian rotation)
EulerXYZ to_euler(float3x3 mat, const bool normalized)
static Quaternion from_float4(float4 v)