Blender
V5.3
source
blender
gpu
shaders
material
gpu_shader_material_invert_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_quaternion.bsl.hh
"
8
9
[[
node
]]
10
void
invert_rotation
(
float4
rotation,
float4
&result)
11
{
12
result =
quaternion_conjugate
(
Quaternion::from_float4
(rotation)).
as_float4
();
13
}
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
invert_rotation
void invert_rotation(float4 rotation, float4 &result)
Definition
gpu_shader_material_invert_rotation.bsl.hh:10
gpu_shader_math_quaternion.bsl.hh
quaternion_conjugate
Quaternion quaternion_conjugate(Quaternion q)
Definition
gpu_shader_math_quaternion.bsl.hh:42
Quaternion::from_float4
static Quaternion from_float4(float4 v)
Definition
gpu_shader_math_quaternion.bsl.hh:17
Quaternion::as_float4
float4 as_float4() const
Definition
gpu_shader_math_quaternion.bsl.hh:22
float4
Definition
sky_math.h:224
Generated on
for Blender by
doxygen
1.18.0