Blender V5.3
gpu_shader_material_rotate_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
8
9[[node]]
10void rotate_rotation_global(float4 rotation, float4 rotate_by, float4 &result)
11{
14 .as_float4();
15}
16
17[[node]]
18void rotate_rotation_local(float4 rotation, float4 rotate_by, float4 &result)
19{
21 Quaternion::from_float4(rotate_by))
22 .as_float4();
23}
void rotate_rotation_local(float4 rotation, float4 rotate_by, float4 &result)
void rotate_rotation_global(float4 rotation, float4 rotate_by, float4 &result)
Quaternion math_quaternion_multiply(Quaternion a, Quaternion b)
static Quaternion from_float4(float4 v)