Blender V5.3
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
9
10[[node]]
11void euler_to_rotation(float3 euler, float4 &rotation)
12{
13 rotation = to_quaternion(EulerXYZ::from_float3(euler)).as_float4();
14}
void euler_to_rotation(float3 euler, float4 &rotation)
Quaternion to_quaternion(EulerXYZ eul)
static EulerXYZ from_float3(float3 eul)