Blender
V5.3
source
blender
gpu
shaders
material
gpu_shader_material_euler_to_rotation.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_euler.bsl.hh
"
8
#include "
gpu_shader_math_rotation_conversion.bsl.hh
"
9
10
[[
node
]]
11
void
euler_to_rotation
(
float3
euler,
float4
&rotation)
12
{
13
rotation =
to_quaternion
(
EulerXYZ::from_float3
(euler)).as_float4();
14
}
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
euler_to_rotation
void euler_to_rotation(float3 euler, float4 &rotation)
Definition
gpu_shader_material_euler_to_rotation.bsl.hh:11
gpu_shader_math_euler.bsl.hh
gpu_shader_math_rotation_conversion.bsl.hh
to_quaternion
Quaternion to_quaternion(EulerXYZ eul)
Definition
gpu_shader_math_rotation_conversion.bsl.hh:138
EulerXYZ::from_float3
static EulerXYZ from_float3(float3 eul)
Definition
gpu_shader_math_euler.bsl.hh:12
float3
Definition
sky_math.h:135
float4
Definition
sky_math.h:224
Generated on
for Blender by
doxygen
1.18.0