|
Blender V5.3
|
Namespaces | |
| namespace | display |
Classes | |
| struct | Convolve |
| struct | Cull |
| struct | IrradianceSum |
| struct | Remap |
| struct | SunExtraction |
Functions | |
| float3 | texel_to_direction (float2 local_texel, SphereProbePixelArea texel_area, float2 &sampling_uv) |
| float3 | texel_to_direction (float2 local_texel, SphereProbePixelArea texel_area) |
| float2 | miplvl_scale_bias (float mip_lvl, SphereProbeUvArea uv_area, float2 uv) |
| void | direction_to_uv (float3 L, float lod_min, float lod_max, SphereProbeUvArea uv_area, float2 &altas_uv_min, float2 &altas_uv_max) |
| float2 | direction_to_uv (float3 L, float lod, SphereProbeUvArea uv_area) |
| float | roughness_to_mix_fac (float roughness) |
| float | roughness_to_lod (float roughness) |
| float | lod_to_roughness (float lod) |
| float3 | parallax_eval (SphereProbeData probe, float3 P, float3 L) |
| ReflectionProbeLowFreqLight | extract_low_freq_lighting (SphericalHarmonicL1< float4 > sh) |
| float | normalization_factor (float3, ReflectionProbeLowFreqLight numerator, ReflectionProbeLowFreqLight denominator) |
| float | triangle_solid_angle (float3 A, float3 B, float3 C) |
| float | quad_solid_angle (float3 A, float3 B, float3 C, float3 D) |
| float | octahedral_texel_solid_angle (int2 local_texel, SphereProbePixelArea write_co) |
| void | remap_cubemap_to_octahedral (Remap &srt, const Uniform &uni, const uint3 global_id, const uint3 group_id, const uint3 num_groups, const uint local_index) |
| float | roughness_from_relative_mip (float prev_mip_roughness, float curr_mip_roughness) |
| float | cone_cosine_from_roughness (float linear_roughness) |
| int | sample_count_get () |
| float | sample_weight (float3 out_direction, float3 in_direction, float linear_roughness) |
| float3x3 | tangent_basis (float3 N) |
| void | mip_convolve (Convolve &srt, const uint3 global_id) |
| void | irradiance_sum (IrradianceSum &srt, const uint local_index) |
| void | sun_extraction (SunExtraction &srt, const uint local_index) |
| void | cull (Cull &srt, const Uniform &uni, const LightprobeVolumeRenderData &volumes, const uint3 global_id) |
Definition at line 275 of file eevee_lightprobe_sphere_bake.bsl.hh.
References cone_cosine_from_roughness(), log, mix, safe_sqrt(), and square().
Referenced by cone_cosine_from_roughness(), and mip_convolve().
| void eevee::lightprobe::sphere::cull | ( | Cull & | srt, |
| const Uniform & | uni, | ||
| const LightprobeVolumeRenderData & | volumes, | ||
| const uint3 | global_id ) |
Select spherical probes to be considered during render and copy irradiance data from the irradiance cache from each spherical probe location except for the world probe.
Definition at line 24 of file eevee_lightprobe_sphere_culling.bsl.hh.
References spherical_harmonics::clamp_energy(), cull(), extract_low_freq_lighting(), global_invocation_id, and resource_table.
Referenced by cull().
| float2 eevee::lightprobe::sphere::direction_to_uv | ( | float3 | L, |
| float | lod, | ||
| SphereProbeUvArea | uv_area ) |
Definition at line 93 of file eevee_lightprobe_sphere.bsl.hh.
References direction_to_uv(), and L.
| void eevee::lightprobe::sphere::direction_to_uv | ( | float3 | L, |
| float | lod_min, | ||
| float | lod_max, | ||
| SphereProbeUvArea | uv_area, | ||
| float2 & | altas_uv_min, | ||
| float2 & | altas_uv_max ) |
Definition at line 75 of file eevee_lightprobe_sphere.bsl.hh.
References direction_to_uv(), L, miplvl_scale_bias(), and octahedral_uv_from_direction().
Referenced by direction_to_uv(), direction_to_uv(), eevee::lookdev::CopyWorld::get_mip_data(), mip_convolve(), and eevee::LightprobeSphereRenderData::sample_probe().
| ReflectionProbeLowFreqLight eevee::lightprobe::sphere::extract_low_freq_lighting | ( | SphericalHarmonicL1< float4 > | sh | ) |
Definition at line 159 of file eevee_lightprobe_sphere.bsl.hh.
References extract_low_freq_lighting(), SphericalHarmonicL1< T >::L0, SphericalHarmonicL1< T >::L1, and transpose.
Referenced by cull(), extract_low_freq_lighting(), and eevee::LightprobeSphereRenderData::spherical_sample_normalized_with_parallax().
| void eevee::lightprobe::sphere::irradiance_sum | ( | IrradianceSum & | srt, |
| const uint | local_index ) |
Definition at line 403 of file eevee_lightprobe_sphere_bake.bsl.hh.
References spherical_harmonics::add(), barrier(), index, irradiance_sum(), SphericalHarmonicL1< T >::L0, SphericalHarmonicL1< T >::L1, local_invocation_index, and resource_table.
Referenced by irradiance_sum().
Definition at line 120 of file eevee_lightprobe_sphere.bsl.hh.
References b, float, lod_to_roughness(), sqrt, and square().
Referenced by lod_to_roughness(), and mip_convolve().
Definition at line 334 of file eevee_lightprobe_sphere_bake.bsl.hh.
References any(), BSDF_ROUGHNESS_THRESHOLD, cone_cosine_from_roughness(), direction_to_uv(), global_invocation_id, greaterThanEqual, random::hammersley_2d(), imageStore(), lod_to_roughness(), max, mip_convolve(), normalize, eevee::reinterpret_as_atlas_coord(), eevee::reinterpret_as_write_coord(), resource_table, roughness_from_relative_mip(), safe_rcp(), sample_count_get(), sample_uniform_cone(), sample_weight(), tangent_basis(), texel_to_direction(), texture(), int2::x, and int2::y.
Referenced by mip_convolve().
| float2 eevee::lightprobe::sphere::miplvl_scale_bias | ( | float | mip_lvl, |
| SphereProbeUvArea | uv_area, | ||
| float2 | uv ) |
Definition at line 60 of file eevee_lightprobe_sphere.bsl.hh.
References float, miplvl_scale_bias(), and scale().
Referenced by direction_to_uv(), miplvl_scale_bias(), and remap_cubemap_to_octahedral().
| float eevee::lightprobe::sphere::normalization_factor | ( | float3 | , |
| ReflectionProbeLowFreqLight | numerator, | ||
| ReflectionProbeLowFreqLight | denominator ) |
Definition at line 178 of file eevee_lightprobe_sphere.bsl.hh.
References normalization_factor(), and saturate.
Referenced by normalization_factor(), and eevee::LightprobeSphereRenderData::spherical_sample_normalized_with_parallax().
| float eevee::lightprobe::sphere::octahedral_texel_solid_angle | ( | int2 | local_texel, |
| SphereProbePixelArea | write_co ) |
Definition at line 49 of file eevee_lightprobe_sphere_bake.bsl.hh.
References any(), clamp(), equal, normalize, octahedral_texel_solid_angle(), quad_solid_angle(), texel_to_direction(), int2::x, and int2::y.
Referenced by octahedral_texel_solid_angle(), and remap_cubemap_to_octahedral().
Definition at line 136 of file eevee_lightprobe_sphere.bsl.hh.
References L, line_unit_box_intersect_dist(), line_unit_sphere_intersect_dist(), P, and parallax_eval().
Referenced by parallax_eval(), and eevee::LightprobeSphereRenderData::spherical_sample_normalized_with_parallax().
Definition at line 44 of file eevee_lightprobe_sphere_bake.bsl.hh.
References A, B, C, D, quad_solid_angle(), and triangle_solid_angle().
Referenced by octahedral_texel_solid_angle(), and quad_solid_angle().
| void eevee::lightprobe::sphere::remap_cubemap_to_octahedral | ( | Remap & | srt, |
| const Uniform & | uni, | ||
| const uint3 | global_id, | ||
| const uint3 | group_id, | ||
| const uint3 | num_groups, | ||
| const uint | local_index ) |
Definition at line 111 of file eevee_lightprobe_sphere_bake.bsl.hh.
References all(), any(), barrier(), colorspace::brightness_clamp_max(), SphericalHarmonicL1< T >::encode_signal_sample(), equal, global_invocation_id, greaterThanEqual, imageStore(), L, SphericalHarmonicL1< T >::L0, SphericalHarmonicL1< T >::L1, length(), local_invocation_index, min, miplvl_scale_bias(), mix, normalize, num_work_groups, octahedral_texel_solid_angle(), eevee::reinterpret_as_atlas_coord(), eevee::reinterpret_as_write_coord(), remap_cubemap_to_octahedral(), resource_table, sample_weight(), saturate, texel_to_direction(), texture(), textureLod(), unroll, and work_group_id.
Referenced by remap_cubemap_to_octahedral().
| float eevee::lightprobe::sphere::roughness_from_relative_mip | ( | float | prev_mip_roughness, |
| float | curr_mip_roughness ) |
Definition at line 255 of file eevee_lightprobe_sphere_bake.bsl.hh.
References pow, and roughness_from_relative_mip().
Referenced by mip_convolve(), and roughness_from_relative_mip().
Definition at line 109 of file eevee_lightprobe_sphere.bsl.hh.
References float, mix, roughness_to_lod(), saturate, and sqrt_fast().
Referenced by eevee::LightprobeRenderData::eval(), eevee::LightprobeRenderData::eval_direction(), roughness_to_lod(), and eevee::surf_world().
Definition at line 100 of file eevee_lightprobe_sphere.bsl.hh.
References roughness_to_mix_fac(), saturate, scale(), and square().
Referenced by eevee::LightprobeRenderData::eval(), roughness_to_mix_fac(), and eevee::surf_world().
| int eevee::lightprobe::sphere::sample_count_get | ( | ) |
Definition at line 288 of file eevee_lightprobe_sphere_bake.bsl.hh.
References sample_count_get().
Referenced by mip_convolve(), and sample_count_get().
| float eevee::lightprobe::sphere::sample_weight | ( | float3 | out_direction, |
| float3 | in_direction, | ||
| float | linear_roughness ) |
Definition at line 296 of file eevee_lightprobe_sphere_bake.bsl.hh.
References dot(), exp, H, N, normalize, sample_weight(), saturate, and square().
Referenced by mip_convolve(), remap_cubemap_to_octahedral(), and sample_weight().
| void eevee::lightprobe::sphere::sun_extraction | ( | SunExtraction & | srt, |
| const uint | local_index ) |
Definition at line 468 of file eevee_lightprobe_sphere_bake.bsl.hh.
References barrier(), clamp(), from_up_axis(), index, len(), local_invocation_index, M_1_PI, resource_table, safe_normalize_and_get_length(), sqrt, square(), sun_extraction(), and transpose.
Referenced by sun_extraction().
Definition at line 316 of file eevee_lightprobe_sphere_bake.bsl.hh.
References from_up_axis(), N, and tangent_basis().
Referenced by mip_convolve(), and tangent_basis().
| float3 eevee::lightprobe::sphere::texel_to_direction | ( | float2 | local_texel, |
| SphereProbePixelArea | texel_area ) |
Definition at line 53 of file eevee_lightprobe_sphere.bsl.hh.
References texel_to_direction().
| float3 eevee::lightprobe::sphere::texel_to_direction | ( | float2 | local_texel, |
| SphereProbePixelArea | texel_area, | ||
| float2 & | sampling_uv ) |
Definition at line 41 of file eevee_lightprobe_sphere.bsl.hh.
References octahedral_uv_to_direction(), and texel_to_direction().
Referenced by eevee::lookdev::CopyWorld::get_mip_data(), mip_convolve(), octahedral_texel_solid_angle(), remap_cubemap_to_octahedral(), texel_to_direction(), and texel_to_direction().
Definition at line 39 of file eevee_lightprobe_sphere_bake.bsl.hh.
References A, abs, atan, B, C, cross, dot(), and triangle_solid_angle().
Referenced by quad_solid_angle(), and triangle_solid_angle().