|
Blender V5.3
|
#include "draw_math_geom.bsl.hh"#include "eevee_light_shared.hh"#include "eevee_uniform_shared.hh"#include "gpu_shader_math_base.bsl.hh"#include "gpu_shader_utildefines.bsl.hh"Go to the source code of this file.
Classes | |
| struct | LightVector |
| struct | LightShape |
Namespaces | |
| namespace | eevee |
| namespace | eevee::light |
Macros | |
| #define | LIGHT_ATTENUATION_THRESHOLD 1e-6f |
Functions | |
| float | eevee::light::power_get (LightData light, LightingType type) |
| bool | eevee::light::light_linking_affects_receiver (uint2 light_set_membership, uchar receiver_light_set) |
Light Functions | |
| float3 | light_world_to_local_direction (LightData light, float3 L) |
| float3 | light_world_to_local_point (LightData light, float3 point) |
| float | light_influence_attenuation (float dist, float inv_sqr_influence) |
| float | light_spot_attenuation (LightData light, float3 L) |
| float | light_attenuation_common (LightData light, const bool is_directional, float3 L) |
| float | light_shape_radius (LightData light) |
| float | light_attenuation_facing (LightData light, float3 L, float distance_to_light, float3 Ng, const bool is_transmission) |
| float | light_attenuation_surface (LightData light, const bool is_directional, LightVector lv) |
| float | light_attenuation_volume (LightData light, const bool is_directional, LightVector lv) |
| float | light_point_light (LightData light, const bool is_directional, LightVector lv) |
| float | light_sphere_disk_radius (float sphere_radius, float distance_to_sphere) |
| #define LIGHT_ATTENUATION_THRESHOLD 1e-6f |
Definition at line 14 of file eevee_light_lib.bsl.hh.
Referenced by eevee::thickness::FromShadowEvalCtx::eval(), eevee::light::culling::WithCullCtx::eval_local(), eevee::light::EvalCtx< is_transmission >::light_eval_single(), eevee::volume::LightEvalCtx::light_eval_single(), and eevee::light::VisibleLightIterator::should_skip().
Definition at line 92 of file eevee_light_lib.bsl.hh.
References dot(), float, L, light_attenuation_common(), and light_spot_attenuation().
Referenced by light_attenuation_common(), light_attenuation_surface(), and light_attenuation_volume().
| float light_attenuation_facing | ( | LightData | light, |
| float3 | L, | ||
| float | distance_to_light, | ||
| float3 | Ng, | ||
| const bool | is_transmission ) |
Fade light influence when surface is not facing the light. This is used in thickness from shadow. Note: Ng is ideally the geometric normal.
Definition at line 122 of file eevee_light_lib.bsl.hh.
References dot(), L, light_attenuation_facing(), light_shape_radius(), and saturate.
Referenced by eevee::thickness::FromShadowEvalCtx::eval(), and light_attenuation_facing().
| float light_attenuation_surface | ( | LightData | light, |
| const bool | is_directional, | ||
| LightVector | lv ) |
Definition at line 135 of file eevee_light_lib.bsl.hh.
References LightVector::dist, LightVector::L, light_attenuation_common(), light_attenuation_surface(), and light_influence_attenuation().
Referenced by eevee::thickness::FromShadowEvalCtx::eval(), eevee::light::culling::WithCullCtx::eval_local(), light_attenuation_surface(), eevee::light::EvalCtx< is_transmission >::light_eval_single(), node_light_evaluation_common_impl(), and eevee::light::VisibleLightIterator::should_skip().
| float light_attenuation_volume | ( | LightData | light, |
| const bool | is_directional, | ||
| LightVector | lv ) |
Definition at line 145 of file eevee_light_lib.bsl.hh.
References LightVector::dist, LightVector::L, light_attenuation_common(), light_attenuation_volume(), and light_influence_attenuation().
Referenced by light_attenuation_volume(), and eevee::volume::LightEvalCtx::light_eval_single().
Definition at line 76 of file eevee_light_lib.bsl.hh.
References light_influence_attenuation(), saturate, and square().
Referenced by light_attenuation_surface(), light_attenuation_volume(), and light_influence_attenuation().
| float light_point_light | ( | LightData | light, |
| const bool | is_directional, | ||
| LightVector | lv ) |
Definition at line 157 of file eevee_light_lib.bsl.hh.
References LightVector::dist, dot(), LightVector::L, light_point_light(), power(), saturate, sqrt, and square().
Referenced by light_point_light().
| float light_shape_radius | ( | LightData | light | ) |
Definition at line 106 of file eevee_light_lib.bsl.hh.
References length(), and light_shape_radius().
Referenced by light_attenuation_facing(), and light_shape_radius().
Return the radius of the disk at the sphere origin spanning the same solid angle as the sphere from a given distance. Assume distance_to_sphere > sphere_radius, otherwise return almost infinite radius.
Definition at line 183 of file eevee_light_lib.bsl.hh.
References inversesqrt(), light_sphere_disk_radius(), max, and square().
Referenced by LightShape::get(), light_sphere_disk_radius(), eevee::shadow_ray_generate_punctual(), and eevee::light::shape_display_light_position_get().
Definition at line 83 of file eevee_light_lib.bsl.hh.
References inversesqrt(), L, length_squared(), light_spot_attenuation(), light_world_to_local_direction(), smoothstep(), and float3::z.
Referenced by light_attenuation_common(), light_spot_attenuation(), and eevee::light::shape_display_frag().
Definition at line 64 of file eevee_light_lib.bsl.hh.
References L, light_world_to_local_direction(), and transform_direction_transposed().
Referenced by eevee::ShadowDebug::debug_coord_get(), light_spot_attenuation(), light_world_to_local_direction(), eevee::shadow_eval(), eevee::shadow::usage::TagUsage::shadow_tag_usage_tilemap_directional(), and eevee::shadow::usage::TagUsage::tag_usage_tilemap_directional_at_level().
Definition at line 68 of file eevee_light_lib.bsl.hh.
References light_world_to_local_point().
Referenced by eevee::ShadowDebug::debug_coord_get(), light_world_to_local_point(), eevee::shadow_eval(), eevee::shadow_texel_radius_at_position(), and eevee::shadow::usage::TagUsage::tag_usage_tilemap_punctual().