소스 검색

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();