Browse Source

Use new point light shadows

supereggbert 6 years ago
parent
commit
2c4eb3b602
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/lights/PointLight.js

+ 2 - 2
src/lights/PointLight.js

@@ -1,6 +1,6 @@
 import { Light } from './Light.js';
 import { Light } from './Light.js';
 import { PerspectiveCamera } from '../cameras/PerspectiveCamera.js';
 import { PerspectiveCamera } from '../cameras/PerspectiveCamera.js';
-import { LightShadow } from './LightShadow.js';
+import { PointLightShadow } from './PointLightShadow.js';
 
 
 /**
 /**
  * @author mrdoob / http://mrdoob.com/
  * @author mrdoob / http://mrdoob.com/
@@ -33,7 +33,7 @@ function PointLight( color, intensity, distance, decay ) {
 	this.distance = ( distance !== undefined ) ? distance : 0;
 	this.distance = ( distance !== undefined ) ? distance : 0;
 	this.decay = ( decay !== undefined ) ? decay : 1;	// for physically correct lights, should be 2.
 	this.decay = ( decay !== undefined ) ? decay : 1;	// for physically correct lights, should be 2.
 
 
-	this.shadow = new LightShadow( new PerspectiveCamera( 90, 1, 0.5, 500 ) );
+	this.shadow = new PointLightShadow();
 
 
 }
 }