Browse Source

AmbientLight/HemisphereLight: Set castShadow to undefined.

Mr.doob 9 years ago
parent
commit
ba13c98435
2 changed files with 4 additions and 0 deletions
  1. 2 0
      src/lights/AmbientLight.js
  2. 2 0
      src/lights/HemisphereLight.js

+ 2 - 0
src/lights/AmbientLight.js

@@ -8,6 +8,8 @@ THREE.AmbientLight = function ( color ) {
 
 
 	this.type = 'AmbientLight';
 	this.type = 'AmbientLight';
 
 
+	this.castShadow = undefined;
+
 };
 };
 
 
 THREE.AmbientLight.prototype = Object.create( THREE.Light.prototype );
 THREE.AmbientLight.prototype = Object.create( THREE.Light.prototype );

+ 2 - 0
src/lights/HemisphereLight.js

@@ -8,6 +8,8 @@ THREE.HemisphereLight = function ( skyColor, groundColor, intensity ) {
 
 
 	this.type = 'HemisphereLight';
 	this.type = 'HemisphereLight';
 
 
+	this.castShadow = undefined;
+
 	this.position.set( 0, 1, 0 );
 	this.position.set( 0, 1, 0 );
 	this.updateMatrix();
 	this.updateMatrix();