|
Blender V5.3
|
#include "gpu_shader_compat.hh"Go to the source code of this file.
Functions | |
Transform function. | |
| float3 | transform_point (float3x3 mat, float3 point) |
| float3 | transform_point (float4x4 mat, float3 point) |
| float2 | transform_point (float3x3 mat, float2 point) |
| float3 | transform_direction (float3x3 mat, float3 direction) |
| float3 | transform_direction (float4x4 mat, float3 direction) |
| float2 | project_point (float3x3 mat, float2 point) |
| float2 | project_point_safe (float3x3 mat, float2 point) |
| float3 | project_point (float4x4 mat, float3 point) |
| float3 | project_point_safe (float4x4 mat, float3 point) |
Project a point using a matrix (location & rotation & scale & perspective divide).
Definition at line 56 of file gpu_shader_math_matrix_transform.bsl.hh.
References abs, project_point(), and float3::z.
Referenced by gpu_math_test_main(), eevee::film::Film::panoramic_sample_get(), project_point(), project_point(), eevee::raytracing::denoise::DenoiseTemporal::radiance_history_sample(), raytrace_planar(), eevee::CameraVelocity::resolve_local(), eevee::fast_gi::setup(), eevee::CameraVelocity::surface_velocity(), eevee::CameraVelocity::surface_velocity_local(), blender::tests::TEST(), eevee::light::culling::Tile::tile_culling_get(), eevee::raytrace::screen::trace(), eevee::raytracing::denoise::DenoiseTemporal::variance_history_sample(), eevee::camera::view_from_uv(), and volume_history_uvw_get().
Project a point using a matrix (location & rotation & scale & perspective divide).
Definition at line 77 of file gpu_shader_math_matrix_transform.bsl.hh.
References abs, project_point(), and float4::w.
Safely project a point using a matrix (location & rotation & scale & perspective divide).
Definition at line 66 of file gpu_shader_math_matrix_transform.bsl.hh.
References abs, project_point_safe(), and float3::z.
Referenced by project_point_safe(), and project_point_safe().
Safely project a point using a matrix (location & rotation & scale & perspective divide).
Definition at line 87 of file gpu_shader_math_matrix_transform.bsl.hh.
References abs, project_point_safe(), and float4::w.
Transform a 3d direction vector using a 3x3 matrix (rotation & scale).
Definition at line 40 of file gpu_shader_math_matrix_transform.bsl.hh.
References transform_direction().
Referenced by Object::adjust_volume_tfm(), Mesh::apply_transform(), area_light_valid_ray_segment(), eevee::CameraVelocity::background_world_direction(), bvh_instance_push(), bvh_unaligned_node_intersect_child(), camera_motion_vector_direction(), camera_sample_orthographic(), camera_sample_perspective(), camera_sample_to_ray(), camera_world_to_ndc(), ShaderManager::compute_thin_film_table(), Object::compute_volume_step_size(), LightManager::device_update_background(), draw::gsplat::eval_radiance(), eevee::lightprobe::volume::display::frag_main(), gpu_math_test_main(), ShaderManager::init_xyz_transforms(), integrate_surface_ray_offset(), integrator_init_from_bake(), eevee::lightprobe::volume::RayCapture::irradiance_capture(), light_tree_to_local_space(), object_dir_transform(), object_inverse_dir_transform(), draw::Curves::object_to_world(), object_volume_density(), point_light_uv(), eevee::CameraVelocity::resolve_local(), eevee::CameraVelocity::resolve_panoramic(), draw::resource_finalize_main(), eevee::light::shadow_setup_main(), spot_light_to_local(), spot_light_valid_ray_segment(), svm_mapping(), svm_node_vector_rotate(), svm_node_vector_transform(), eevee::shadow::tag_update_vert(), blender::tests::TEST(), eevee::raytrace::planar::trace(), eevee::raytrace::screen::trace(), LightTreeMeasure::transform(), transform_direction(), transform_direction(), transform_direction(), transform_direction(), Camera::update(), eevee::camera::uv_from_world(), and Camera::world_to_raster_size().
Transform a 3d direction vector using a 4x4 matrix (rotation & scale).
Definition at line 48 of file gpu_shader_math_matrix_transform.bsl.hh.
References transform_direction().
Transform a 2d point using a 3x3 matrix (location & rotation & scale).
Definition at line 32 of file gpu_shader_math_matrix_transform.bsl.hh.
References transform_point().
Transform a 3d point using a 3x3 matrix (rotation & scale).
Definition at line 16 of file gpu_shader_math_matrix_transform.bsl.hh.
References transform_point().
Referenced by Hair::apply_transform(), Mesh::apply_transform(), PointCloud::apply_transform(), area_light_valid_ray_segment(), blender::bone_draw_wire(), Hair::Curve::bounds_grow(), PointCloud::Point::bounds_grow(), bvh_instance_push(), bvh_unaligned_node_intersect_child(), camera_motion_vector(), camera_sample_orthographic(), camera_sample_perspective(), camera_sample_to_ray(), camera_world_to_ndc(), camera_z_depth(), eevee::surfel::cluster_index_get(), eevee::light::Resources::cubeface_sync(), LightManager::device_update_distribution(), eevee::SurfVolume::eval_froxel(), draw::frustum_boundbox_calc(), LightVector::get_shape_closest(), BVHSpatialSplit::get_unaligned_point(), gpu_math_test_main(), curves::AttribBuf< InterpPosition, float4 >::input_load(), integrate_surface_ray_offset(), CCL_NAMESPACE_BEGIN::kernel_image_interp_3d(), kernel_volume_density_evaluate(), light_tree_to_local_space(), LightTreeEmitter::LightTreeEmitter(), eevee::CameraVelocity::local_to_panoramic(), object_inverse_position_transform(), object_position_transform(), draw::Curves::object_to_world(), draw::pointcloud::object_to_world(), ObtainCacheParticleData(), primitive_motion_data_without_camera(), primitive_motion_vector_backward_depth_delta(), draw::gsplat::project_gaussian(), blender::eevee::IrradianceBake::raylists_build(), draw::resource_finalize_main(), blender::nodes::node_geo_rotate_instances_cc::rotate_instances(), eevee::light::shape_display_light_position_get(), BVHSpatialSplit::split_curve_primitive(), BVHSpatialSplit::split_point_primitive(), BVHSpatialSplit::split_triangle_primitive(), spot_light_valid_ray_segment(), eevee::CameraVelocity::surface_velocity(), eevee::CameraVelocity::surface_velocity_local(), blender::eevee::IrradianceBake::surfel_raster_views_sync(), blender::eevee::IrradianceBake::surfels_create(), svm_node_camera(), svm_node_tex_coord_eval(), svm_node_texture_mapping(), svm_node_vector_transform(), svm_texco_camera(), eevee::shadow::tag_update_vert(), blender::tests::TEST(), blender::tests::TEST(), BlenderObjectCulling::test(), eevee::raytrace::planar::trace(), eevee::raytrace::screen::trace(), transform_point(), transform_point(), transform_point(), transform_point(), transform_point(), BoundBox::transformed(), triangle_point_from_uv(), triangle_point_from_uv_and_verts(), triangle_world_space_vertices(), overlay::armature::shape::solid::vert(), overlay::armature::sphere::outline::vert(), overlay::armature::sphere::solid::vert(), eevee::lightprobe::planar::display::vert_main(), overlay::armature::shape::outline::Resources::vertex_main(), eevee::GeometryVelocity::vertex_velocity(), volume_history_uvw_get(), blender::wm_xr_navigation_teleport_data_update(), and Camera::world_to_raster_size().
Transform a 3d point using a 4x4 matrix (location & rotation & scale).
Definition at line 24 of file gpu_shader_math_matrix_transform.bsl.hh.
References transform_point().