|
Blender V5.3
|
#include "gpu_shader_math_angle.bsl.hh"#include "gpu_shader_math_axis_angle.bsl.hh"#include "gpu_shader_math_base.bsl.hh"#include "gpu_shader_math_euler.bsl.hh"#include "gpu_shader_math_quaternion.bsl.hh"Go to the source code of this file.
Creates a 2D rotation matrix with the angle that the given direction makes with the x axis. Assumes the direction vector is normalized.
Definition at line 305 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_direction(), float2::x, and float2::y.
Referenced by from_direction().
Create a rotation matrix from an up axis, and an incident vector I. The other axes are chosen to always be orthogonal. The resulting matrix is a basis matrix.
Definition at line 353 of file gpu_shader_math_matrix_construct.bsl.hh.
References cos_theta(), cross, dot(), from_incident_vector(), from_up_axis(), and normalize.
Referenced by from_incident_vector(), eevee::LTCData::identity(), and eevee::LTCData::sample_ltc_lut().
Create a transform matrix with translation and rotation applied in this order.
Definition at line 266 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_loc_rot(), and from_rotation().
Create a transform matrix with translation and rotation applied in this order.
Definition at line 248 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_loc_rot(), and from_rotation().
Referenced by from_loc_rot(), from_loc_rot(), from_loc_rot(), gpu_math_test_main(), blender::tests::TEST(), and blender::tests::TEST().
| float4x4 from_loc_rot | ( | float3 | location, |
| Quaternion | rotation ) |
Create a transform matrix with translation and rotation applied in this order.
Definition at line 257 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_loc_rot(), and from_rotation().
Create a transform matrix with translation, rotation and scale applied in this order.
Definition at line 294 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_loc_rot_scale(), from_rot_scale(), and scale().
Create a transform matrix with translation, rotation and scale applied in this order.
Definition at line 276 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_loc_rot_scale(), from_rot_scale(), and scale().
Referenced by combine_transform(), from_loc_rot_scale(), from_loc_rot_scale(), from_loc_rot_scale(), gpu_math_test_main(), interpolate_fast(), blender::eevee::IrradianceBake::surfel_raster_views_sync(), blender::tests::TEST(), blender::tests::TEST(), and blender::draw::test_eevee_shadow_tag_update().
| float4x4 from_loc_rot_scale | ( | float3 | location, |
| Quaternion | rotation, | ||
| float3 | scale ) |
Create a transform matrix with translation, rotation and scale applied in this order.
Definition at line 285 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_loc_rot_scale(), from_rot_scale(), and scale().
Create a translation only matrix. Matrix dimensions should be at least 4 col x 3 row.
Definition at line 81 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_location().
Referenced by from_location(), gpu_math_test_main(), and blender::tests::TEST().
Create a transform matrix with rotation and scale applied in this order.
Definition at line 240 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_rot_scale(), from_rotation(), from_scale(), and scale().
Create a transform matrix with rotation and scale applied in this order.
Definition at line 226 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_rot_scale(), from_rotation(), from_scale(), and scale().
Referenced by from_loc_rot_scale(), from_loc_rot_scale(), from_loc_rot_scale(), from_rot_scale(), from_rot_scale(), from_rot_scale(), and blender::tests::TEST().
| float3x3 from_rot_scale | ( | Quaternion | rotation, |
| float3 | scale ) |
Create a transform matrix with rotation and scale applied in this order.
Definition at line 233 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_rot_scale(), from_rotation(), from_scale(), and scale().
| float2x2 from_rotation | ( | AngleRadian | rotation | ) |
Create a rotation only matrix.
Definition at line 125 of file gpu_shader_math_matrix_construct.bsl.hh.
References cos, from_rotation(), and sin.
Referenced by eevee::subsurface::convolve_main(), eevee::dof::Accumulator::dof_gather_accumulator(), from_loc_rot(), from_loc_rot(), from_loc_rot(), from_rot_scale(), from_rot_scale(), from_rot_scale(), from_rotation(), from_rotation(), from_rotation(), from_rotation(), gpu_math_test_main(), mapping_normal(), mapping_point(), mapping_texture(), mapping_vector(), node_vector_rotate_euler_xyz(), rotate(), rotate(), builtin::socket::rotate_45(), blender::nodes::node_geo_rotate_instances_cc::rotate_instances(), rotation_to_euler(), blender::eevee::IrradianceBake::surfel_raster_views_sync(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), blender::tests::TEST(), and blender::bke::pbvh::uv_islands::UVBorderCorner::uv().
Create a rotation only matrix.
Definition at line 199 of file gpu_shader_math_matrix_construct.bsl.hh.
References cos, float, from_rotation(), from_scale(), and sin.
Create a rotation only matrix.
Definition at line 134 of file gpu_shader_math_matrix_construct.bsl.hh.
References cos, from_rotation(), and sin.
| float3x3 from_rotation | ( | Quaternion | rotation | ) |
Create a rotation only matrix.
Definition at line 164 of file gpu_shader_math_matrix_construct.bsl.hh.
References float, from_rotation(), and M_SQRT2.
Create a matrix whose diagonal is defined by the given scale vector.
Definition at line 91 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_scale(), and scale().
Referenced by eevee::subsurface::convolve_main(), from_rot_scale(), from_rot_scale(), from_rot_scale(), from_rotation(), from_scale(), from_scale(), from_scale(), draw::gsplat::get_rot_scale_mat(), blender::bke::greasepencil::get_stroke_to_texture_matrix(), gpu_math_test_main(), blender::eevee::PlanarProbe::set_view(), blender::tests::TEST(), and blender::tests::TEST().
Create a matrix whose diagonal is defined by the given scale vector.
Definition at line 101 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_scale(), and scale().
Create a matrix whose diagonal is defined by the given scale vector.
Definition at line 112 of file gpu_shader_math_matrix_construct.bsl.hh.
References from_scale(), and scale().
Create a rotation matrix from 2 basis vectors. The matrix determinant is given to be positive and it can be converted to other rotation types.
Definition at line 333 of file gpu_shader_math_matrix_construct.bsl.hh.
References b, from_up_axis(), square(), float3::x, float3::y, and float3::z.
Referenced by from_incident_vector(), from_up_axis(), eevee::ray_generate_direction(), eevee::shadow_pcf_offset(), eevee::light::shadow_setup_main(), eevee::lightprobe::sphere::sun_extraction(), eevee::lightprobe::sphere::tangent_basis(), blender::tests::TEST(), and eevee::debug::surfels::vert_main().
Definition at line 33 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat2x2_all().
Referenced by mat2x2_all(), and mat2x2_zero().
Definition at line 17 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat2x2_diagonal().
Referenced by mat2x2_diagonal(), and mat2x2_identity().
| float2x2 mat2x2_identity | ( | ) |
Definition at line 59 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat2x2_diagonal(), and mat2x2_identity().
Referenced by mat2x2_identity().
| float2x2 mat2x2_zero | ( | ) |
Definition at line 46 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat2x2_all(), and mat2x2_zero().
Referenced by mat2x2_zero().
Definition at line 37 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat3x3_all().
Referenced by gpu_math_test_main(), mat3x3_all(), and mat3x3_zero().
Definition at line 21 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat3x3_diagonal().
Referenced by gpu_math_test_main(), mat3x3_diagonal(), and mat3x3_identity().
| float3x3 mat3x3_identity | ( | ) |
Definition at line 63 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat3x3_diagonal(), and mat3x3_identity().
Referenced by jacobi_svd_3x3(), and mat3x3_identity().
| float3x3 mat3x3_zero | ( | ) |
Definition at line 50 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat3x3_all(), and mat3x3_zero().
Referenced by mat3x3_zero().
Definition at line 41 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat4x4_all().
Referenced by mat4x4_all(), and mat4x4_zero().
Definition at line 25 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat4x4_diagonal().
Referenced by mat4x4_diagonal(), and mat4x4_identity().
| float4x4 mat4x4_identity | ( | ) |
Definition at line 67 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat4x4_diagonal(), and mat4x4_identity().
Referenced by gpu_math_test_main(), and mat4x4_identity().
| float4x4 mat4x4_zero | ( | ) |
Definition at line 54 of file gpu_shader_math_matrix_construct.bsl.hh.
References mat4x4_all(), and mat4x4_zero().
Referenced by mat4x4_zero().