[Bf-blender-cvs] [6f53af3a815] master: EEVEE: Fix Symbol error in SH_L2 Caculation
RaphaelBelmont
noreply at git.blender.org
Fri Sep 2 20:59:28 CEST 2022
Commit: 6f53af3a8159a5c5ec29d2c9a1b3521ec3f002c2
Author: RaphaelBelmont
Date: Fri Sep 2 20:58:43 2022 +0200
Branches: master
https://developer.blender.org/rB6f53af3a8159a5c5ec29d2c9a1b3521ec3f002c2
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
===================================================================
M source/blender/draw/engines/eevee/shaders/lightprobe_filter_diffuse_frag.glsl
===================================================================
diff --git a/source/blender/draw/engines/eevee/shaders/lightprobe_filter_diffuse_frag.glsl b/source/blender/draw/engines/eevee/shaders/lightprobe_filter_diffuse_frag.glsl
index 9ecc50d9df5..c7f6687d2e2 100644
--- a/source/blender/draw/engines/eevee/shaders/lightprobe_filter_diffuse_frag.glsl
+++ b/source/blender/draw/engines/eevee/shaders/lightprobe_filter_diffuse_frag.glsl
@@ -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;
More information about the Bf-blender-cvs
mailing list