Fix: EEVEE-Next: Uninitialized variable in volume probe loading

The spherical_harmonics_triple_product was not working as
expected and produced NaNs.
This commit is contained in:
Clément Foucault
2024-02-13 18:59:24 +01:00
parent 65d42af3e3
commit 13f0d7bd47

View File

@@ -380,7 +380,7 @@ SphericalHarmonicL1 spherical_harmonics_triple_product(SphericalHarmonicL1 a,
sh.L1.M0 += ta * b.L1.M0 + tb * a.L1.M0;
sh.L0.M0 += 0.282094795 * (a.L1.M0 * b.L1.M0);
sh.L1.Mp1 += ta * b.L1.Mp1 + tb * a.L1.Mp1;
sh.L1.Mp1 = ta * b.L1.Mp1 + tb * a.L1.Mp1;
sh.L0.M0 += 0.282094791 * (a.L1.Mp1 * b.L1.Mp1);
return sh;
}