|
Blender V5.3
|
Classes | |
| struct | SurfelCapture |
| struct | TagPixelCtx |
| struct | TagSurfelCtx |
| struct | TagUsage |
| struct | TagUsageOpaque |
| struct | TagUsageSurfel |
| struct | TagUsageTransparent |
| struct | VertIn |
| struct | VertOut |
Functions | |
| void | tag_usage_opaque (TagUsageOpaque &srt, const HiZ &hiz, const draw::View &views, TagUsage &tag, const uint3 global_id) |
| void | tag_usage_surfel (TagUsageSurfel &srt, TagUsage &tag, SurfelCapture &capture, const uint3 global_id) |
| void | tag_usage_volume (UnifiedVolumeProperties &volume, TagUsage &tag, const Uniform &uni, const draw::View &views, const Sampling &sampling, const HiZ &hiz, const uint3 global_id) |
| float | nextafter (float value) |
| void | tag_usage_vert (TagUsageTransparent &srt, TagUsage &, const int inst_index, const draw::View &views, const draw::Model &models, draw::Resource &res_id, const int vert_id, const VertIn &v_in, VertOut &v_out, float4 &out_position) |
| void | tag_usage_frag (TagUsageTransparent &srt, const draw::View &views, const draw::Model &models, TagUsage &tag, const HiZ &hiz, const VertOut interp, const float4 frag_co) |
Virtual shadow-mapping: Usage tagging
Shadow pages are only allocated if they are visible.
Definition at line 134 of file eevee_shadow_tag_usage_transparent.bsl.hh.
References floatBitsToUint, nextafter(), and uintBitsToFloat.
Referenced by nextafter(), and tag_usage_frag().
| void eevee::shadow::usage::tag_usage_frag | ( | TagUsageTransparent & | srt, |
| const draw::View & | views, | ||
| const draw::Model & | models, | ||
| TagUsage & | tag, | ||
| const HiZ & | hiz, | ||
| const VertOut | interp, | ||
| const float4 | frag_co ) |
Definition at line 219 of file eevee_shadow_tag_usage_transparent.bsl.hh.
References distance(), exp2, eevee::light::foreach_visible(), frag_coord, in, interp(), max, min, nextafter(), normalize, P, ObjectMatrices::point_object_to_world(), ViewMatrices::point_screen_to_view(), ViewMatrices::point_screen_to_world(), ObjectMatrices::point_world_to_object(), ViewMatrices::point_world_to_view(), resource_table, tag_usage_frag(), texelFetch(), ViewMatrices::world_incident_vector(), and float3::z.
Referenced by tag_usage_frag().
| void eevee::shadow::usage::tag_usage_opaque | ( | TagUsageOpaque & | srt, |
| const HiZ & | hiz, | ||
| const draw::View & | views, | ||
| TagUsage & | tag, | ||
| const uint3 | global_id ) |
This pass scan the depth buffer and tag all tiles that are needed for light shadowing as needed.
Definition at line 246 of file eevee_shadow_tag_usage.bsl.hh.
References eevee::light::foreach_visible(), global_invocation_id, in_range_inclusive, ViewMatrices::point_screen_to_view(), ViewMatrices::point_view_to_world(), resource_table, tag_usage_opaque(), texelFetch(), and float3::z.
Referenced by tag_usage_opaque().
| void eevee::shadow::usage::tag_usage_surfel | ( | TagUsageSurfel & | srt, |
| TagUsage & | tag, | ||
| SurfelCapture & | capture, | ||
| const uint3 | global_id ) |
This pass iterates the surfels buffer and tag all tiles that are needed for light shadowing as needed.
Definition at line 293 of file eevee_shadow_tag_usage.bsl.hh.
References eevee::light::foreach(), global_invocation_id, index, resource_table, and tag_usage_surfel().
Referenced by tag_usage_surfel().
| void eevee::shadow::usage::tag_usage_vert | ( | TagUsageTransparent & | srt, |
| TagUsage & | , | ||
| const int | inst_index, | ||
| const draw::View & | views, | ||
| const draw::Model & | models, | ||
| draw::Resource & | res_id, | ||
| const int | vert_id, | ||
| const VertIn & | v_in, | ||
| VertOut & | v_out, | ||
| float4 & | out_position ) |
Definition at line 140 of file eevee_shadow_tag_usage_transparent.bsl.hh.
References ObjectBounds::bounding_corners, Box::corners, drw_bounds_are_valid(), drw_debug(), FLT_MAX, in, instance_index, max, midpoint(), min, mix, NAN_FLT, out, P, ObjectMatrices::point_object_to_world(), ViewMatrices::point_world_to_homogenous(), ObjectMatrices::point_world_to_object(), ViewMatrices::point_world_to_view(), position, resource_table, shape_box(), tag_usage_vert(), and vertex_id.
Referenced by tag_usage_vert().
| void eevee::shadow::usage::tag_usage_volume | ( | UnifiedVolumeProperties & | volume, |
| TagUsage & | tag, | ||
| const Uniform & | uni, | ||
| const draw::View & | views, | ||
| const Sampling & | sampling, | ||
| const HiZ & | hiz, | ||
| const uint3 | global_id ) |
This pass scans all volume froxels and tags tiles needed for shadowing.
Definition at line 317 of file eevee_shadow_tag_usage.bsl.hh.
References any(), eevee::light::foreach_visible(), global_invocation_id, greaterThanEqual, imageLoadFast, random::interleaved_gradient(), is_zero(), P, ViewMatrices::point_screen_to_view(), ViewMatrices::point_view_to_world(), resource_table, tag_usage_volume(), texelFetch(), volume_resolve_to_screen(), ViewMatrices::world_incident_vector(), and float3::z.
Referenced by tag_usage_volume().