|
@@ -176,7 +176,12 @@ function WebGLLights() {
|
|
|
|
|
|
for ( var j = 0; j < 9; j ++ ) {
|
|
for ( var j = 0; j < 9; j ++ ) {
|
|
|
|
|
|
- state.probe[ j ].addScaledVector( light.sh.coefficients[ j ], intensity );
|
|
|
|
|
|
+ var probe = state.probe[ j ];
|
|
|
|
+ var coeff = light.sh.coefficients[ j ];
|
|
|
|
+
|
|
|
|
+ probe.x += coeff.x * color.r * intensity;
|
|
|
|
+ probe.y += coeff.y * color.g * intensity;
|
|
|
|
+ probe.z += coeff.z * color.b * intensity;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|