EEVEE-Next: Reduce volume probe blending and remove remapping

See 118342
This commit is contained in:
Miguel Pozo
2024-02-27 18:54:08 +01:00
parent eb0590dbbe
commit 3560f7ec41

View File

@@ -150,9 +150,7 @@ SphericalHarmonicL1 lightprobe_irradiance_sample(
index = i;
#ifdef IRRADIANCE_GRID_SAMPLING
float distance_to_border = reduce_min(min(lP, vec3(grids_infos_buf[i].grid_size) - lP));
if (distance_to_border < random) {
/* Remap random to the remaining interval. */
random = (random - distance_to_border) / (1.0 - distance_to_border);
if (distance_to_border < random * 0.5 /* Half cell blending. */) {
/* Try to sample another grid to get smooth transitions at borders. */
continue;
}