|
Blender V5.3
|
#include <draw_shader_shared.hh>
Public Attributes | |
| float4x4 | viewmat |
| float4x4 | viewinv |
| float4x4 | winmat |
| float4x4 | wininv |
Definition at line 133 of file draw_shader_shared.hh.
Definition at line 329 of file draw_shader_shared.hh.
References point_screen_to_view().
Referenced by eevee::light::culling::debug_frag(), eevee::film::depth_convert_to_scene(), dof_coc_from_depth(), eevee::fast_gi::eval(), eevee::motion_blur::gather::gather_comp(), eevee::motion_blur::gather::Resources::gather_sample(), workbench::dof::prepare(), raycast_eval(), raytrace_screen(), raytrace_screen_2(), workbench::dof::resolve(), eevee::subsurface::setup_main(), and volume_screen_to_resolve().
Definition at line 324 of file draw_shader_shared.hh.
References point_view_to_screen().
Referenced by overlay::armature::sphere::solid::frag(), raycast_eval(), raytrace_screen(), eevee::raytracing::denoise::spatial_main(), and volume_resolve_to_screen().
|
inline |
Definition at line 170 of file draw_shader_shared.hh.
References is_perspective(), and winmat.
Referenced by eevee::light::shape_display_light_position_get(), and eevee::raytrace::screen::trace().
|
inline |
Definition at line 146 of file draw_shader_shared.hh.
References viewinv.
Referenced by eevee::amend_frag(), eevee::light::culling::cull_main(), eevee::forward_lighting_eval(), eevee::deferred::light_eval_frag(), light_iter_init(), eevee::deferred::planar_eval_frag(), eevee::deferred::sphere_eval_frag(), eevee::surf_occupancy(), world_incident_vector(), z_distance(), and eevee::light::culling::zbin_main().
|
inline |
Definition at line 140 of file draw_shader_shared.hh.
References winmat.
Referenced by draw::gsplat::eval_splat(), far(), workbench::shadow::rt::frag(), eevee::shadow::usage::TagUsageTransparent::inflate_bounds(), eevee::volume::integration_main(), eevee::light::culling::CullingTile::intersect(), near(), draw::gsplat::project_gaussian(), eevee::shadow_texel_radius_at_position(), eevee::shadow::usage::TagUsage::tag_usage_tilemap_punctual(), view_incident_vector(), view_z_to_volume_z(), volume_z_to_view_z(), and world_incident_vector().
Transform position in Normalized Device Coordinate [-1..1] to screen UV space [0..1].
Definition at line 216 of file draw_shader_shared.hh.
References T.
Referenced by eevee::forward_lighting_eval(), point_view_to_screen(), point_world_to_screen(), eevee::fast_gi::setup(), volume_history_uvw_get(), and volume_view_to_jitter().
|
inline |
Definition at line 179 of file draw_shader_shared.hh.
References is_perspective(), and winmat.
Referenced by raytrace_clip_ray_to_near_plane(), and eevee::raytrace::screen::trace().
Definition at line 243 of file draw_shader_shared.hh.
References float4::w.
Referenced by point_ndc_to_view(), ObjectMatrices::point_object_to_ndc(), point_view_to_ndc(), point_world_to_ndc(), overlay::armature::shape::outline::Resources::vertex_main(), volume_history_uvw_get(), volume_screen_to_view(), and volume_view_to_jitter().
Definition at line 258 of file draw_shader_shared.hh.
References wininv.
Referenced by point_homogeneous_to_world().
Definition at line 278 of file draw_shader_shared.hh.
References point_homogeneous_to_view(), and point_view_to_world().
Definition at line 288 of file draw_shader_shared.hh.
References perspective_divide(), and wininv.
Referenced by point_ndc_to_world(), and point_screen_to_view().
Definition at line 293 of file draw_shader_shared.hh.
References point_ndc_to_view(), and point_view_to_world().
Referenced by eevee::lightprobe::planar::display::frag_main(), eevee::light::shape_display_far_plane_position_get(), and eevee::volume::volume_shadow().
Definition at line 314 of file draw_shader_shared.hh.
References point_ndc_to_view(), and screen_to_ndc().
Referenced by eevee::CameraVelocity::background_world_direction(), workbench::cavity_compute(), eevee::subsurface::convolve_main(), eevee::film::depth_convert_to_scene(), depth_screen_to_view(), dof_coc_from_depth(), eevee::fast_gi::eval(), workbench::resolve::frag(), workbench::prepass::frag_transparent(), workbench::volume::fragment_function(), eevee::occlusion_pass(), point_screen_to_world(), raytrace_screen(), raytrace_screen_2(), eevee::film::Film::sample_accum_mist(), eevee::fast_gi::scan(), eevee::raytracing::denoise::spatial_main(), eevee::shadow::usage::tag_usage_frag(), eevee::shadow::usage::tag_usage_opaque(), and eevee::shadow::usage::tag_usage_volume().
Definition at line 319 of file draw_shader_shared.hh.
References point_screen_to_view(), and point_view_to_world().
Referenced by eevee::amend_frag(), eevee::raytracing::denoise::bilateral_main(), eevee::deferred::combine_frag(), eevee::light::culling::debug_frag(), eevee::debug_shadow_frag(), workbench::shadow::rt::frag(), eevee::raytracing::generate_rays(), eevee::deferred::light_eval_frag(), eevee::CameraVelocity::local_to_panoramic(), eevee::deferred::planar_eval_frag(), raytrace_screen(), eevee::fast_gi::resolve(), eevee::CameraVelocity::resolve_local(), eevee::fast_gi::SampleInput::sample_weight_get(), eevee::fast_gi::SampleInput::sample_weight_get(), eevee::raytracing::denoise::DenoiseSpatial::sample_weight_get(), eevee::fast_gi::setup(), eevee::raytracing::denoise::spatial_main(), eevee::deferred::sphere_eval_frag(), eevee::shadow::usage::tag_usage_frag(), eevee::raytracing::denoise::temporal_main(), eevee::raytrace::fallback::trace(), eevee::raytrace::planar::trace(), and eevee::raytrace::screen::trace().
Definition at line 253 of file draw_shader_shared.hh.
References winmat.
Referenced by ScreenSpaceRay::create(), eevee::geom_curves(), eevee::geom_mesh(), eevee::geom_pointcloud(), point_view_to_ndc(), eevee::lightprobe::sphere::display::vert_main(), eevee::lightprobe::volume::display::vert_main(), and overlay::armature::shape::outline::Resources::vertex_main().
Definition at line 263 of file draw_shader_shared.hh.
References perspective_divide(), and point_view_to_homogenous().
Referenced by point_view_to_screen().
Definition at line 304 of file draw_shader_shared.hh.
References ndc_to_screen(), and point_view_to_ndc().
Referenced by depth_view_to_screen(), and raytrace_screen_2().
Definition at line 248 of file draw_shader_shared.hh.
References viewinv.
Referenced by eevee::SurfVolume::eval_froxel(), eevee::shadow::usage::TagUsageTransparent::inflate_bounds(), point_homogeneous_to_world(), point_ndc_to_world(), point_screen_to_world(), eevee::volume::scatter_main(), eevee::raytracing::denoise::spatial_main(), eevee::shadow::usage::TagUsageTransparent::step_bounding_sphere(), eevee::shadow::usage::tag_usage_opaque(), eevee::shadow::usage::tag_usage_volume(), and eevee::lightprobe::sphere::display::vert_main().
Definition at line 273 of file draw_shader_shared.hh.
References P, viewmat, and winmat.
Referenced by eevee::geom_volume(), draw::gsplat::ShapeResource::get_point(), point_world_to_ndc(), eevee::light::shape_display_vert(), eevee::shadow::usage::tag_usage_vert(), overlay::armature::degrees_of_freedom::vert(), overlay::armature::envelope::outline::vert(), overlay::armature::shape::solid::vert(), overlay::armature::wire_bone::vert(), overlay::edit_vert::vert(), workbench::prepass::vert_curves(), eevee::debug::irradiance_grid::vert_main(), eevee::debug::surfels::vert_main(), workbench::prepass::vert_mesh(), workbench::prepass::vert_pointcloud(), workbench::volume::vertex_function(), overlay::armature::shape::wire::Resources::vertex_main(), and workbench::shadow::Resources::vertex_main().
Definition at line 283 of file draw_shader_shared.hh.
References P, perspective_divide(), and point_world_to_homogenous().
Referenced by draw::gsplat::eval_splat(), eevee::forward_lighting_eval(), point_world_to_screen(), and eevee::volume::volume_shadow().
Definition at line 309 of file draw_shader_shared.hh.
References ndc_to_screen(), and point_world_to_ndc().
Referenced by coordinate_impl(), and eevee::surfel::list_index_get().
Definition at line 268 of file draw_shader_shared.hh.
Referenced by ambient_occlusion_eval(), coordinate_impl(), eevee::geom_curves(), eevee::geom_gsplat(), eevee::geom_mesh(), eevee::geom_pointcloud(), eevee::shadow::usage::TagUsageTransparent::inflate_bounds(), raycast_eval(), eevee::shadow::usage::tag_usage_frag(), eevee::shadow::usage::tag_usage_vert(), eevee::light::culling::tile_main(), eevee::lightprobe::sphere::display::vert_main(), eevee::lightprobe::volume::display::vert_main(), overlay::armature::shape::outline::Resources::vertex_main(), and eevee::volume::volume_shadow().
|
inline |
Definition at line 158 of file draw_shader_shared.hh.
References viewinv.
Referenced by eevee::amend_frag(), coordinate_impl(), eevee::light::culling::cull_main(), eevee::SurfVolume::eval_froxel(), eevee::forward_lighting_eval(), eevee::init_globals(), eevee::deferred::light_eval_frag(), light_iter_init(), eevee::deferred::planar_eval_frag(), eevee::surfel::list::prepare::prepare_comp(), eevee::light::shape_display_light_position_get(), eevee::deferred::sphere_eval_frag(), eevee::surf_occupancy(), eevee::volume::volume_shadow(), world_incident_vector(), z_distance(), and eevee::light::culling::zbin_main().
Transform position on screen UV space [0..1] to Normalized Device Coordinate space [-1..1].
Definition at line 208 of file draw_shader_shared.hh.
References T.
Referenced by eevee::lightprobe::planar::display::frag_main(), point_screen_to_view(), raytrace_planar(), volume_history_uvw_get(), and volume_screen_to_view().
|
inline |
Definition at line 152 of file draw_shader_shared.hh.
References viewinv.
Referenced by eevee::geom_pointcloud(), and workbench::prepass::vert_pointcloud().
Returns the view incident vector vV (going towards the viewer) from the view position vP and the current view.
Definition at line 200 of file draw_shader_shared.hh.
References is_perspective(), and normalize.
Referenced by eevee::CameraVelocity::background_world_direction(), eevee::fast_gi::eval(), workbench::resolve::frag(), workbench::prepass::frag_transparent(), eevee::raytracing::denoise::spatial_main(), and eevee::surf_world().
Returns the world incident vector V (going towards the viewer) from the world position P and the current view.
Definition at line 191 of file draw_shader_shared.hh.
References forward(), is_perspective(), normalize, P, and position().
Referenced by closure_to_rgba_forward(), closure_to_rgba_hybrid(), coordinate_impl(), draw::gsplat::eval_radiance(), draw::gsplat::eval_splat(), eevee::forward_lighting_eval(), eevee::lightprobe::planar::display::frag_main(), eevee::lightprobe::sphere::display::frag_main(), eevee::raytracing::generate_rays(), eevee::geom_curves(), eevee::geom_gsplat(), eevee::geom_pointcloud(), eevee::init_globals_curves(), eevee::deferred::light_eval_frag(), node_light_evaluation_impl(), eevee::deferred::planar_eval_frag(), eevee::lightprobe::volume::ray_capture(), eevee::surfel::ray_main(), eevee::fast_gi::resolve(), eevee::volume::scatter_main(), eevee::light::shape_display_frag(), eevee::raytracing::denoise::spatial_main(), eevee::deferred::sphere_eval_frag(), eevee::shadow::usage::tag_usage_frag(), eevee::shadow::usage::tag_usage_volume(), eevee::raytrace::fallback::trace(), eevee::raytrace::planar::trace(), eevee::raytrace::screen::trace(), overlay::edit_vert::vert(), workbench::prepass::vert_curves(), and workbench::prepass::vert_pointcloud().
Definition at line 164 of file draw_shader_shared.hh.
References dot(), forward(), P, and position().
Referenced by workbench::shadow::rt::frag(), eevee::shadow_texel_radius_at_position(), and eevee::shadow::usage::TagUsage::tag_usage_tilemap_punctual().
| float4x4 ViewMatrices::viewinv |
Definition at line 135 of file draw_shader_shared.hh.
Referenced by eevee::CameraVelocity::background_world_direction(), overlay::armature::envelope::compute_mat(), direction_transform_view_to_object(), direction_transform_view_to_world(), forward(), normal_transform_view_to_object(), normal_transform_view_to_world(), eevee::film::Film::panoramic_sample_get(), point_transform_view_to_object(), point_transform_view_to_world(), ObjectMatrices::point_view_to_object(), point_view_to_world(), position(), eevee::fast_gi::resolve(), eevee::light::shape_display_light_position_get(), eevee::raytrace::screen::trace(), up(), overlay::armature::envelope::outline::vert(), overlay::armature::shape::wire::Resources::vertex_main(), and draw::view_finalize_main().
| float4x4 ViewMatrices::viewmat |
Definition at line 134 of file draw_shader_shared.hh.
Referenced by direction_transform_object_to_view(), direction_transform_world_to_view(), normal_transform_object_to_view(), normal_transform_world_to_view(), eevee::film::Film::panoramic_sample_get(), eevee::film::Film::panoramic_view_id_get(), ObjectMatrices::point_object_to_homogenous(), ObjectMatrices::point_object_to_view(), point_transform_object_to_view(), point_transform_world_to_view(), point_world_to_homogenous(), point_world_to_view(), draw::gsplat::project_gaussian(), eevee::CameraVelocity::resolve_local(), eevee::CameraVelocity::surface_velocity_local(), eevee::raytrace::screen::trace(), overlay::armature::envelope::solid::vert(), overlay::armature::sphere::outline::vert(), overlay::armature::sphere::solid::vert(), overlay::armature::stick_bone::vert(), and draw::view_finalize_main().
| float4x4 ViewMatrices::wininv |
Definition at line 137 of file draw_shader_shared.hh.
Referenced by eevee::film::Film::panoramic_sample_get(), point_homogeneous_to_view(), point_ndc_to_view(), and eevee::light::culling::Tile::tile_culling_get().
| float4x4 ViewMatrices::winmat |
Definition at line 136 of file draw_shader_shared.hh.
Referenced by workbench::cavity_compute(), overlay::armature::envelope::compute_mat(), eevee::subsurface::convolve_main(), far(), overlay::armature::sphere::solid::frag(), workbench::prepass::frag_transparent(), workbench::volume::fragment_function(), overlay::armature::shape::outline::Resources::geometry_main(), is_perspective(), near(), eevee::film::Film::panoramic_sample_get(), eevee::shadow::usage::TagUsageTransparent::pixel_size_at(), ObjectMatrices::point_object_to_homogenous(), point_view_to_homogenous(), point_world_to_homogenous(), draw::gsplat::project_gaussian(), raytrace_planar(), raytrace_sample_screen(), raytrace_sample_screen(), raytrace_screen(), eevee::CameraVelocity::resolve_local(), eevee::film::Film::sample_accum_mist(), eevee::subsurface::setup_main(), eevee::CameraVelocity::surface_velocity_local(), eevee::light::culling::Tile::tile_culling_get(), overlay::armature::envelope::outline::vert(), overlay::armature::envelope::solid::vert(), overlay::armature::sphere::outline::vert(), overlay::armature::sphere::solid::vert(), overlay::armature::stick_bone::vert(), and draw::view_finalize_main().