Explorar o código

AmbientLight/HemisphereLight: Set castShadow to undefined.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
ba13c98435
Modificáronse 2 ficheiros con 4 adicións e 0 borrados
  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.castShadow = undefined;
+
 };
 
 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.castShadow = undefined;
+
 	this.position.set( 0, 1, 0 );
 	this.updateMatrix();