29 int idx = int(global_id.x);
30 if (idx >= srt.lightprobe_sphere_count) {
35 if (idx == srt.lightprobe_sphere_count - 1) {
39 float3 probe_center = srt.lightprobe_sphere_buf[idx].location;
40 sh = volumes.sample_probe_no_dithered_no_biases(probe_center);
43 float clamp_indirect_sh = uni.uniform_buf.clamp.surface_indirect;
PipelineCompute eevee_lightprobe_sphere_select(eevee::lightprobe::sphere::cull)
#define storage(slot, qualifiers)
#define global_invocation_id
ReflectionProbeLowFreqLight extract_low_freq_lighting(SphericalHarmonicL1< float4 > sh)
void cull(Cull &srt, const Uniform &uni, const LightprobeVolumeRenderData &volumes, const uint3 global_id)
SphericalHarmonicL1< float4 > clamp_energy(SphericalHarmonicL1< float4 > sh, float clamp_value)
const int lightprobe_sphere_count
SphereProbeData(& lightprobe_sphere_buf)[SPHERE_PROBE_MAX]