Blender V5.3
gpu_shader_math_matrix_normalize.bsl.hh File Reference

Go to the source code of this file.

Functions

Normalize
float3x3 normalize (float3x3 mat)
float4x4 normalize (float4x4 mat)
float3x3 normalize_and_get_size (float3x3 mat, float3 &r_size)
float4x4 normalize_and_get_size (float4x4 mat, float4 &r_size)

Function Documentation

◆ normalize() [1/2]

float3x3 normalize ( float3x3 mat)

Normalize each column of the matrix individually.

Definition at line 64 of file gpu_shader_math_matrix_normalize.bsl.hh.

References normalize.

◆ normalize() [2/2]

float4x4 normalize ( float4x4 mat)

Definition at line 100 of file gpu_shader_math_matrix_normalize.bsl.hh.

References normalize.

◆ normalize_and_get_size() [1/2]

float3x3 normalize_and_get_size ( float3x3 mat,
float3 & r_size )

Normalize each column of the matrix individually. Return the length of each column vector.

Definition at line 153 of file gpu_shader_math_matrix_normalize.bsl.hh.

References normalize_and_get_length(), and normalize_and_get_size().

Referenced by gpu_math_test_main(), normalize_and_get_size(), normalize_and_get_size(), blender::eevee::Light::sync(), blender::tests::TEST(), to_rot_scale(), and to_rot_scale().

◆ normalize_and_get_size() [2/2]

float4x4 normalize_and_get_size ( float4x4 mat,
float4 & r_size )