Fix: EEVEE-Next: Use the correct shadow radius

Typo/mistake from #118860.
This commit is contained in:
Miguel Pozo
2024-03-06 13:21:39 +01:00
parent e3c0f64154
commit 500a891ac9

View File

@@ -97,7 +97,6 @@ void Light::sync(ShadowModule &shadows, const Object *ob, float threshold)
/* Reuse shape radius as near clip plane. */
/* This assumes `shape_parameters_set` has already set `radius_squared`. */
float radius = math::sqrt(this->radius_squared);
#if 0 /* UNUSED. */
float shadow_radius = la->shadow_softness_factor * radius;
if (ELEM(la->type, LA_LOCAL, LA_SPOT)) {
/* `shape_parameters_set` can increase the radius of point and spot lights to ensure a
@@ -108,14 +107,13 @@ void Light::sync(ShadowModule &shadows, const Object *ob, float threshold)
* So we use the original light radius instead. */
shadow_radius = la->shadow_softness_factor * la->radius;
}
#endif
this->punctual->sync(this->type,
this->object_mat,
la->spotsize,
radius,
this->influence_radius_max,
la->shadow_softness_factor,
la->shadow_softness_factor * la->radius);
shadow_radius);
}
}
else {