Skip to content

Commit

Permalink
Removed currently unused RectAreaLightShadow.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 24, 2017
1 parent eca340d commit d124fd4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 33 deletions.
1 change: 0 additions & 1 deletion src/Three.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
5 changes: 1 addition & 4 deletions src/lights/RectAreaLight.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand All @@ -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 ) );

}

Expand All @@ -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;

},
Expand Down
26 changes: 0 additions & 26 deletions src/lights/RectAreaLightShadow.js

This file was deleted.

3 changes: 1 addition & 2 deletions src/renderers/webgl/WebGLShadowMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit d124fd4

Please sign in to comment.