|
Blender V5.3
|
Namespaces | |
| namespace | culling |
Classes | |
| struct | ClosureStack |
| struct | ClosureStack< false > |
| struct | ClosureStack< true > |
| struct | EvalCtx |
| struct | Resources |
| struct | ShapeDisplayFragOut |
| struct | ShapeDisplayVertOut |
| struct | VisibleLightIterator |
Enumerations | |
| enum | LightIteratorPhase : uint { LIGHT_ITER_PHASE_INIT = 0 , LIGHT_ITER_PHASE_DIRECTIONAL = 1 , LIGHT_ITER_PHASE_LOCAL = 2 , LIGHT_ITER_PHASE_END = 3 } |
Variables | |
| PipelineCompute | shadow_setup (shadow_setup_main) |
| PipelineGraphic | shape_display (shape_display_vert, shape_display_frag) |
| enum eevee::light::LightIteratorPhase : uint |
| Enumerator | |
|---|---|
| LIGHT_ITER_PHASE_INIT | |
| LIGHT_ITER_PHASE_DIRECTIONAL | |
| LIGHT_ITER_PHASE_LOCAL | |
| LIGHT_ITER_PHASE_END | |
Definition at line 55 of file eevee_light_iter.bsl.hh.
| uint eevee::light::bitfield_mask | ( | uint | bit_width, |
| uint | bit_min ) |
Definition at line 15 of file eevee_light_iter.bsl.hh.
References bitfield_mask(), and mask().
Referenced by bitfield_mask(), and zbin_mask().
Definition at line 32 of file eevee_light_iter.bsl.hh.
References culling_z_to_zbin(), scale(), and z().
Referenced by culling_z_to_zbin(), foreach_visible(), eevee::light::VisibleLightIterator::init(), and eevee::light::culling::zbin_main().
| void eevee::light::eval_single_closure | ( | sampler2DArray | util_tx, |
| LightData | light, | ||
| LightVector | lv, | ||
| LightShape | shape, | ||
| ClosureLight & | cl, | ||
| float | attenuation, | ||
| float | shadow ) |
Definition at line 44 of file eevee_light_eval.bsl.hh.
References eval_single_closure(), eevee::ltc::evaluate(), ClosureLight::light_shadowed, ClosureLight::light_unshadowed, power_get(), ClosureLight::type, and eevee::LTCData::unpack_from().
Referenced by eval_single_closure(), and eevee::light::EvalCtx< is_transmission >::light_eval_single().
| void eevee::light::foreach | ( | const LightRenderData & | srt, |
| CallbackT & | cb, | ||
| ResourceT & | res ) |
Definition at line 40 of file eevee_light_iter.bsl.hh.
References index, eevee::LightRenderData::light_buf, and eevee::LightRenderData::light_cull_buf.
Referenced by eevee::debug_atomic_cost(), eevee::light::culling::debug_frag(), eevee::ShadowDebug::debug_light_get(), eevee::light::foreach< eevee::shadow::TilemapBoundsCtx, eevee::shadow::TilemapBounds >(), eevee::shadow::usage::tag_usage_surfel(), eevee::tilemap_amend(), and eevee::shadow::tilemap_bounds_min_max().
| void eevee::light::foreach_visible | ( | const LightRenderData & | srt, |
| float2 | pixel, | ||
| float | linear_view_z, | ||
| CallbackT & | cb, | ||
| ResourceT & | res ) |
Definition at line 209 of file eevee_light_iter.bsl.hh.
References clamp(), culling_z_to_zbin(), findLSB, foreach_visible(), index, eevee::LightRenderData::light_buf, eevee::LightRenderData::light_cull_buf, eevee::LightRenderData::light_tile_buf, eevee::LightRenderData::light_zbin_buf, uint2::x, uint2::y, and zbin_mask().
Referenced by eevee::amend_frag(), eevee::light::culling::debug_frag(), eevee::LightEvalIterator::eval_reflection(), eevee::LightEvalIterator::eval_transmission(), foreach_visible(), foreach_visible< EvalCtx< false >, LightEvalData >(), foreach_visible< EvalCtx< true >, LightEvalData >(), eevee::light::foreach_visible< thickness::FromShadowEvalCtx, ShadowRenderData >(), eevee::volume::scatter_main(), eevee::shadow::usage::tag_usage_frag(), eevee::shadow::usage::tag_usage_opaque(), and eevee::shadow::usage::tag_usage_volume().
| template void eevee::light::foreach_visible< EvalCtx< false >, LightEvalData > | ( | const LightRenderData & | , |
| float2 | , | ||
| float | , | ||
| EvalCtx< false > & | , | ||
| LightEvalData & | ) |
References float, and foreach_visible().
| template void eevee::light::foreach_visible< EvalCtx< true >, LightEvalData > | ( | const LightRenderData & | , |
| float2 | , | ||
| float | , | ||
| EvalCtx< true > & | , | ||
| LightEvalData & | ) |
References float, and foreach_visible().
| template void eevee::light::foreach_visible< volume::LightEvalCtx, volume::Scatter > | ( | const LightRenderData & | , |
| float2 | , | ||
| float | , | ||
| volume::LightEvalCtx & | , | ||
| volume::Scatter & | ) |
Definition at line 154 of file eevee_light_eval.bsl.hh.
References init_from_reflect_ctx(), eevee::light::EvalCtx< is_transmission >::Ng, eevee::light::EvalCtx< is_transmission >::P, eevee::light::EvalCtx< is_transmission >::ray_count, eevee::light::EvalCtx< is_transmission >::ray_step_count, eevee::light::EvalCtx< is_transmission >::receiver_light_set, eevee::light::EvalCtx< is_transmission >::terminator_geometry_offset, eevee::light::EvalCtx< is_transmission >::terminator_normal_offset, eevee::light::EvalCtx< is_transmission >::texel, and eevee::light::EvalCtx< is_transmission >::thickness.
Referenced by eevee::forward_lighting_eval(), init_from_reflect_ctx(), eevee::deferred::light_eval_frag(), eevee::deferred::planar_eval_frag(), and eevee::deferred::sphere_eval_frag().
| template void eevee::light::light::foreach< culling::NoCullCtx, LightRenderData > | ( | const LightRenderData & | , |
| culling::NoCullCtx & | , | ||
| LightRenderData & | ) |
| template void eevee::light::light::foreach< shadow::usage::TagSurfelCtx, shadow::usage::TagUsage > | ( | const LightRenderData & | , |
| shadow::usage::TagSurfelCtx & | , | ||
| shadow::usage::TagUsage & | ) |
| template void eevee::light::light::foreach_visible< culling::WithCullCtx, LightRenderData > | ( | const LightRenderData & | , |
| float2 | , | ||
| float | , | ||
| culling::WithCullCtx & | , | ||
| LightRenderData & | ) |
| template void eevee::light::light::foreach_visible< shadow::usage::TagPixelCtx, shadow::usage::TagUsage > | ( | const LightRenderData & | , |
| float2 | , | ||
| float | , | ||
| shadow::usage::TagPixelCtx & | , | ||
| shadow::usage::TagUsage & | ) |
| bool eevee::light::light_linking_affects_receiver | ( | uint2 | light_set_membership, |
| uchar | receiver_light_set ) |
Definition at line 276 of file eevee_light_lib.bsl.hh.
References bitmask64_test(), and light_linking_affects_receiver().
Referenced by eevee::light::EvalCtx< is_transmission >::light_eval_single(), light_linking_affects_receiver(), and eevee::light::VisibleLightIterator::should_skip().
| float eevee::light::power_get | ( | LightData | light, |
| LightingType | type ) |
Definition at line 269 of file eevee_light_lib.bsl.hh.
References power_get().
Referenced by eval_single_closure(), eevee::volume::LightEvalCtx::light_eval_single(), power_get(), and eevee::volume::volume_light().
| int eevee::light::shadow_directional_coverage_get | ( | int | level | ) |
Definition at line 18 of file eevee_light_shadow_setup.bsl.hh.
References shadow_directional_coverage_get().
Referenced by eevee::light::Resources::cascade_sync(), eevee::light::Resources::orthographic_sync(), and shadow_directional_coverage_get().
| void eevee::light::shadow_setup_main | ( | Resources & | srt, |
| const Uniform & | uni, | ||
| const Sampling & | sampling, | ||
| const uint3 | global_id ) |
Definition at line 264 of file eevee_light_shadow_setup.bsl.hh.
References atan_fast(), cos, from_up_axis(), global_invocation_id, LIGHT_NO_SHADOW, resource_table, sample_ball(), sample_disk(), sample_uniform_cone(), shadow_setup_main(), and transform_direction().
Referenced by shadow_setup_main().
| float3 eevee::light::shape_display_far_plane_position_get | ( | const ViewMatrices | view, |
| float2 | ndc_pos ) |
Definition at line 56 of file eevee_light_shape_display.bsl.hh.
References ViewMatrices::point_ndc_to_world(), and shape_display_far_plane_position_get().
Referenced by shape_display_far_plane_position_get(), and shape_display_vert().
| void eevee::light::shape_display_frag | ( | const draw::View & | views, |
| const LightRenderData & | lrd, | ||
| const UnifiedVolumeData & | volumes, | ||
| const Uniform & | uni, | ||
| const float4 | frag_co, | ||
| const ShapeDisplayVertOut & | v_out, | ||
| ShapeDisplayFragOut & | frag_out ) |
Definition at line 120 of file eevee_light_shape_display.bsl.hh.
References cos_from_tan(), dot(), frag_coord, gpu_discard_fragment(), in, light_spot_attenuation(), out, P, reverse_z::read(), resource_table, shape_display_frag(), sun_direction(), VolumeResolveSample::transmittance, V, and ViewMatrices::world_incident_vector().
Referenced by shape_display_frag().
| float3 eevee::light::shape_display_light_position_get | ( | const ViewMatrices | view, |
| LightData | light, | ||
| float2 | quad_pos ) |
Definition at line 27 of file eevee_light_shape_display.bsl.hh.
References ViewMatrices::far(), L, length(), light_sphere_disk_radius(), make_orthonormal_basis(), ViewMatrices::position(), shape_display_light_position_get(), transform_point(), ViewMatrices::viewinv, float2::x, and float2::y.
Referenced by shape_display_light_position_get(), and shape_display_vert().
| float2 eevee::light::shape_display_quad_position_get | ( | int | vertex_id | ) |
Definition at line 61 of file eevee_light_shape_display.bsl.hh.
References shape_display_quad_position_get(), vertex_id, x, and y.
Referenced by shape_display_quad_position_get(), and shape_display_vert().
| void eevee::light::shape_display_vert | ( | const draw::View & | views, |
| const LightRenderData & | lrd, | ||
| const int | vertex_id, | ||
| ShapeDisplayVertOut & | v_out, | ||
| float4 & | out_position ) |
Definition at line 70 of file eevee_light_shape_display.bsl.hh.
References out, ViewMatrices::point_world_to_homogenous(), position, resource_table, shape_display_far_plane_position_get(), shape_display_light_position_get(), shape_display_quad_position_get(), shape_display_vert(), reverse_z::transform(), and vertex_id.
Referenced by shape_display_vert().
| uint eevee::light::zbin_mask | ( | uint | word_index, |
| uint | zbin_min, | ||
| uint | zbin_max ) |
Definition at line 22 of file eevee_light_iter.bsl.hh.
References bitfield_mask(), max, min, and zbin_mask().
Referenced by foreach_visible(), and zbin_mask().
| PipelineCompute eevee::light::shadow_setup(shadow_setup_main) | ( | shadow_setup_main | ) |
| PipelineGraphic eevee::light::shape_display(shape_display_vert, shape_display_frag) | ( | shape_display_vert | , |
| shape_display_frag | ) |