1
1

EEVEE: Fix Symbol error in SH_L2 Caculation

The caculation of 7th SH coefficient need a negative sign

Reviewed By: fclem

Differential Revision: https://developer.blender.org/D15635
This commit is contained in:
RaphaelBelmont
2022-09-02 20:58:43 +02:00
committed by Clément Foucault
parent 2b7de49a2b
commit 6f53af3a81

View File

@@ -100,7 +100,7 @@ void main()
coef = 0.315392 * (3.0 * cubevec.y * cubevec.y - 1.0) * 1.0 / 4.0;
}
else if (comp == 7) {
coef = 1.092548 * cubevec.x * cubevec.y * 1.0 / 4.0;
coef = -1.092548 * cubevec.x * cubevec.y * 1.0 / 4.0;
}
else { /* (comp == 8) */
coef = 0.546274 * (cubevec.x * cubevec.x - cubevec.z * cubevec.z) * 1.0 / 4.0;