Fix: EEVEE-Next: Lights with large radius do not work

The threshold is way too high as the light power gets very small.
It still make sense to include the power here because
some lights might be disabled for some BSDF types, and
skipping the LTC eval code can be beneficial.
So reducing the threshold to very low value near FLT_MIN
to fix the issue.

Fix #123193
This commit is contained in:
Clément Foucault
2024-06-14 18:09:12 +02:00
parent f168ae73a8
commit c5ba48427e

View File

@@ -92,7 +92,7 @@ void light_eval_single_closure(LightData light,
const bool is_transmission)
{
attenuation *= light_power_get(light, cl.type);
if (attenuation < 1e-5) {
if (attenuation < 1e-30) {
return;
}
float ltc_result = light_ltc(utility_tx, light, cl.N, V, lv, cl.ltc_mat);