Blender
V5.3
source
blender
gpu
shaders
material
gpu_shader_material_separate_transform.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
#include "
gpu_shader_math_rotation_conversion.bsl.hh
"
9
10
[[
node
]]
11
void
separate_transform
(
float4x4
transform
,
float3
&translation,
float4
&rotation,
float3
&
scale
)
12
{
13
Quaternion
quat;
14
to_loc_rot_scale
(
transform
, translation, quat,
scale
,
false
);
15
rotation = quat.
as_float4
();
16
}
transform
SIMD_FORCE_INLINE btVector3 transform(const btVector3 &point) const
Definition
btBoxCollision.h:205
node
#define node
Definition
gpu_shader_cxx_attribute.hh:142
separate_transform
void separate_transform(float4x4 transform, float3 &translation, float4 &rotation, float3 &scale)
Definition
gpu_shader_material_separate_transform.bsl.hh:11
scale
float3x3 scale(float3x3 mat, float2 scale)
Definition
gpu_shader_math_matrix.bsl.hh:100
gpu_shader_math_quaternion.bsl.hh
gpu_shader_math_rotation_conversion.bsl.hh
to_loc_rot_scale
void to_loc_rot_scale(float4x4 mat, float3 &r_location, EulerXYZ &r_rotation, float3 &r_scale)
Definition
gpu_shader_math_rotation_conversion.bsl.hh:365
blender::float4x4
MatBase< float, 4, 4 > float4x4
Definition
BLI_math_matrix_types.hh:1024
Quaternion
Definition
gpu_shader_math_quaternion.bsl.hh:9
Quaternion::as_float4
float4 as_float4() const
Definition
gpu_shader_math_quaternion.bsl.hh:22
float3
Definition
sky_math.h:135
float4
Definition
sky_math.h:224
Generated on
for Blender by
doxygen
1.18.0