Jelajahi Sumber

Removed currently unused RectAreaLightShadow.

Mr.doob 8 tahun lalu
induk
melakukan
d124fd4169

+ 0 - 1
src/Three.js

@@ -50,7 +50,6 @@ export { AudioLoader } from './loaders/AudioLoader.js';
 export { SpotLightShadow } from './lights/SpotLightShadow.js';
 export { SpotLight } from './lights/SpotLight.js';
 export { PointLight } from './lights/PointLight.js';
-export { RectAreaLightShadow } from './lights/RectAreaLightShadow.js';
 export { RectAreaLight } from './lights/RectAreaLight.js';
 export { HemisphereLight } from './lights/HemisphereLight.js';
 export { DirectionalLightShadow } from './lights/DirectionalLightShadow.js';

+ 1 - 4
src/lights/RectAreaLight.js

@@ -4,7 +4,7 @@ import { Light } from './Light';
  * @author abelnation / http://github.com/abelnation
  */
 
-function RectAreaLight ( color, intensity, width, height ) {
+function RectAreaLight( color, intensity, width, height ) {
 
 	Light.call( this, color, intensity );
 
@@ -21,7 +21,6 @@ function RectAreaLight ( color, intensity, width, height ) {
 	// TODO (abelnation): update method for RectAreaLight to update transform to lookat target
 
 	// TODO (abelnation): shadows
-	// this.shadow = new THREE.RectAreaLightShadow( new THREE.PerspectiveCamera( 90, 1, 0.5, 500 ) );
 
 }
 
@@ -39,8 +38,6 @@ RectAreaLight.prototype = Object.assign( Object.create( Light.prototype ), {
 		this.width = source.width;
 		this.height = source.height;
 
-		// this.shadow = source.shadow.clone();
-
 		return this;
 
 	},

+ 0 - 26
src/lights/RectAreaLightShadow.js

@@ -1,26 +0,0 @@
-import { LightShadow } from './LightShadow';
-import { PerspectiveCamera } from '../cameras/PerspectiveCamera';
-
-/**
- * @author aallison / http://github.com/abelnation
- */
-
-function RectAreaLightShadow() {
-
-	LightShadow.call( this, new PerspectiveCamera( 50, 1, 0.5, 500 ) );
-
-};
-
-RectAreaLightShadow.prototype = Object.assign( Object.create( LightShadow.prototype ), {
-
-	constructor: RectAreaLightShadow,
-
-	update: function ( light ) {
-
-	// TODO (abelnation): implement
-
-	}
-
-});
-
-export { RectAreaLightShadow };

+ 1 - 2
src/renderers/webgl/WebGLShadowMap.js

@@ -200,8 +200,7 @@ function WebGLShadowMap( _renderer, _lights, _objects, capabilities ) {
 
 			}
 
-			// TODO (abelnation / sam-g-steel): is this needed?
-			if ( shadow && shadow.isRectAreaLightShadow ) {
+			if ( shadow ) {
 
 				shadow.update( light );