|
Blender V5.3
|
#include <gpu_shader_math_spherical_harmonics.bsl.hh>
Public Member Functions | |
| void | encode_signal_sample (float3 direction, T amplitude) |
| T | evaluate (float3 direction) const |
| T | evaluate_lambert (float3 N) const |
Public Attributes | |
| spherical_harmonics::BandL0< T > | L0 |
| spherical_harmonics::BandL1< T > | L1 |
Definition at line 321 of file gpu_shader_math_spherical_harmonics.bsl.hh.
|
inline |
Definition at line 327 of file gpu_shader_math_spherical_harmonics.bsl.hh.
References spherical_harmonics::BandL0< T >::encode_signal_sample(), spherical_harmonics::BandL1< T >::encode_signal_sample(), L0, L1, and T.
Referenced by eevee::fast_gi::eval(), eevee::lightprobe::volume::RayCapture::irradiance_capture(), and eevee::lightprobe::sphere::remap_cubemap_to_octahedral().
|
inline |
Definition at line 334 of file gpu_shader_math_spherical_harmonics.bsl.hh.
References spherical_harmonics::BandL0< T >::evaluate(), spherical_harmonics::BandL1< T >::evaluate(), L0, L1, max, and T.
|
inline |
Convolve a spherical harmonic encoded irradiance signal as a lambertian reflection. Returns the lambertian radiance (cosine lobe divided by PI) so the coefficients simplify to 1, 2/3 and 1/4. See this reference for more explanation: https://seblagarde.wordpress.com/2012/01/08/pi-or-not-to-pi-in-game-lighting-equation/
Definition at line 346 of file gpu_shader_math_spherical_harmonics.bsl.hh.
References spherical_harmonics::BandL0< T >::evaluate(), spherical_harmonics::BandL1< T >::evaluate(), L0, L1, max, N, and T.
Referenced by eevee::LightprobeRenderData::eval(), eevee::LightprobeRenderData::eval(), eevee::lightprobe::volume::display::frag_main(), eevee::deferred::planar_eval_frag(), eevee::fast_gi::resolve(), eevee::deferred::sphere_eval_frag(), and eevee::surf_world().
| spherical_harmonics::BandL0<T> SphericalHarmonicL1< T >::L0 |
Definition at line 322 of file gpu_shader_math_spherical_harmonics.bsl.hh.
Referenced by spherical_harmonics::add(), spherical_harmonics::clamp_energy(), spherical_harmonics::compress(), eevee::lookdev::copy_world_main(), spherical_harmonics::decompress(), spherical_harmonics::dering(), spherical_harmonics::dot(), encode_signal_sample(), evaluate(), evaluate_lambert(), eevee::lightprobe::sphere::extract_low_freq_lighting(), eevee::lightprobe::volume::display::frag_main(), eevee::lightprobe::volume::LoadGrid::irradiance_load(), eevee::lightprobe::sphere::irradiance_sum(), eevee::lightprobe::volume::load_grid(), eevee::fast_gi::SampleInput::load_sh(), eevee::lightprobe::volume::load_world(), spherical_harmonics::madd(), spherical_harmonics::mul(), spherical_harmonics::mul(), spherical_harmonics::pack(), eevee::lightprobe::volume::ray_capture(), eevee::lightprobe::sphere::remap_cubemap_to_octahedral(), eevee::LightprobeVolumeRenderData::sample_atlas(), spherical_harmonics::triple_product(), spherical_harmonics::unpack(), and volume_phase_function_as_sh_L1().
| spherical_harmonics::BandL1<T> SphericalHarmonicL1< T >::L1 |
Definition at line 323 of file gpu_shader_math_spherical_harmonics.bsl.hh.
Referenced by spherical_harmonics::add(), spherical_harmonics::clamp_energy(), spherical_harmonics::compress(), eevee::lookdev::copy_world_main(), spherical_harmonics::decompress(), spherical_harmonics::dering(), spherical_harmonics::dot(), encode_signal_sample(), evaluate(), evaluate_lambert(), eevee::lightprobe::sphere::extract_low_freq_lighting(), eevee::lightprobe::volume::display::frag_main(), eevee::lightprobe::volume::LoadGrid::irradiance_load(), eevee::lightprobe::sphere::irradiance_sum(), eevee::lightprobe::volume::load_grid(), eevee::fast_gi::SampleInput::load_sh(), eevee::lightprobe::volume::load_world(), spherical_harmonics::madd(), spherical_harmonics::mul(), spherical_harmonics::mul(), spherical_harmonics::pack(), eevee::lightprobe::volume::ray_capture(), eevee::lightprobe::sphere::remap_cubemap_to_octahedral(), spherical_harmonics::rotate(), eevee::LightprobeVolumeRenderData::sample_atlas(), spherical_harmonics::triple_product(), spherical_harmonics::unpack(), and volume_phase_function_as_sh_L1().