Blender
V5.3
source
blender
gpu
shaders
material
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
7
#include "
gpu_shader_math_matrix_construct.bsl.hh
"
8
#include "
gpu_shader_math_rotation_conversion.bsl.hh
"
9
10
[[
node
]]
11
void
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
}
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
rotation_to_euler
void rotation_to_euler(float4 rotation, float3 &euler)
Definition
gpu_shader_material_rotation_to_euler.bsl.hh:11
gpu_shader_math_matrix_construct.bsl.hh
from_rotation
float2x2 from_rotation(AngleRadian rotation)
Definition
gpu_shader_math_matrix_construct.bsl.hh:125
gpu_shader_math_rotation_conversion.bsl.hh
to_euler
EulerXYZ to_euler(float3x3 mat, const bool normalized)
Definition
gpu_shader_math_rotation_conversion.bsl.hh:240
Quaternion
Definition
gpu_shader_math_quaternion.bsl.hh:9
Quaternion::from_float4
static Quaternion from_float4(float4 v)
Definition
gpu_shader_math_quaternion.bsl.hh:17
float3
Definition
sky_math.h:135
float4
Definition
sky_math.h:224
Generated on
for Blender by
doxygen
1.18.0