瀏覽代碼

AmbientLight/HemisphereLight: Set castShadow to undefined.

Mr.doob 10 年之前
父節點
當前提交
ba13c98435
共有 2 個文件被更改,包括 4 次插入0 次删除
  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();