|
@@ -2,10 +2,7 @@
|
|
|
* @author WestLangley / http://github.com/WestLangley
|
|
|
*/
|
|
|
|
|
|
-import { _Math } from '../math/Math.js';
|
|
|
-import { Vector3 } from '../math/Vector3.js';
|
|
|
import { Color } from '../math/Color.js';
|
|
|
-import { SphericalHarmonics3 } from '../math/SphericalHarmonics3.js';
|
|
|
import { LightProbe } from './LightProbe.js';
|
|
|
|
|
|
function AmbientLightProbe( color, intensity ) {
|
|
@@ -15,7 +12,7 @@ function AmbientLightProbe( color, intensity ) {
|
|
|
var color1 = new Color().set( color );
|
|
|
|
|
|
// without extra factor of PI in the shader, would be 2 / Math.sqrt( Math.PI );
|
|
|
- this.sh.coefficients[ 0 ].set( color1.r, color1.g, color1.b ).multiplyScalar( 2 * Math.sqrt( Math.PI ) );
|
|
|
+ this.sh.coefficients[ 0 ].set( color1.r, color1.g, color1.b ).multiplyScalar( 2 * Math.sqrt( Math.PI ) );
|
|
|
|
|
|
}
|
|
|
|