Blender V5.3
eevee::lightprobe::sphere Namespace Reference

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)

Function Documentation

◆ cone_cosine_from_roughness()

float eevee::lightprobe::sphere::cone_cosine_from_roughness ( float linear_roughness)

◆ cull()

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().

◆ direction_to_uv() [1/2]

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.

◆ direction_to_uv() [2/2]

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 )

◆ extract_low_freq_lighting()

◆ irradiance_sum()

void eevee::lightprobe::sphere::irradiance_sum ( IrradianceSum & srt,
const uint local_index )

◆ lod_to_roughness()

float eevee::lightprobe::sphere::lod_to_roughness ( float lod)

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().

◆ mip_convolve()

◆ miplvl_scale_bias()

float2 eevee::lightprobe::sphere::miplvl_scale_bias ( float mip_lvl,
SphereProbeUvArea uv_area,
float2 uv )

◆ normalization_factor()

float eevee::lightprobe::sphere::normalization_factor ( float3 ,
ReflectionProbeLowFreqLight numerator,
ReflectionProbeLowFreqLight denominator )

◆ octahedral_texel_solid_angle()

float eevee::lightprobe::sphere::octahedral_texel_solid_angle ( int2 local_texel,
SphereProbePixelArea write_co )

◆ parallax_eval()

float3 eevee::lightprobe::sphere::parallax_eval ( SphereProbeData probe,
float3 P,
float3 L )

◆ quad_solid_angle()

float eevee::lightprobe::sphere::quad_solid_angle ( float3 A,
float3 B,
float3 C,
float3 D )

◆ remap_cubemap_to_octahedral()

◆ roughness_from_relative_mip()

float eevee::lightprobe::sphere::roughness_from_relative_mip ( float prev_mip_roughness,
float curr_mip_roughness )

◆ roughness_to_lod()

float eevee::lightprobe::sphere::roughness_to_lod ( float roughness)

◆ roughness_to_mix_fac()

float eevee::lightprobe::sphere::roughness_to_mix_fac ( float roughness)

◆ sample_count_get()

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().

◆ sample_weight()

float eevee::lightprobe::sphere::sample_weight ( float3 out_direction,
float3 in_direction,
float linear_roughness )

◆ sun_extraction()

void eevee::lightprobe::sphere::sun_extraction ( SunExtraction & srt,
const uint local_index )

◆ tangent_basis()

float3x3 eevee::lightprobe::sphere::tangent_basis ( float3 N)

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().

◆ texel_to_direction() [1/2]

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().

◆ texel_to_direction() [2/2]

float3 eevee::lightprobe::sphere::texel_to_direction ( float2 local_texel,
SphereProbePixelArea texel_area,
float2 & sampling_uv )

◆ triangle_solid_angle()

float eevee::lightprobe::sphere::triangle_solid_angle ( float3 A,
float3 B,
float3 C )

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().