ソースを参照

Tweaks to Light's shadow API. Object3D has .castShadow...

Mr.doob 9 年 前
コミット
440f508d65
2 ファイル変更0 行追加12 行削除
  1. 0 10
      src/lights/Light.js
  2. 0 2
      src/lights/LightShadow.js

+ 0 - 10
src/lights/Light.js

@@ -17,16 +17,6 @@ THREE.Light.prototype = Object.create( THREE.Object3D.prototype );
 THREE.Light.prototype.constructor = THREE.Light;
 
 Object.defineProperties( THREE.Light.prototype, {
-	castShadow: {
-		get: function () {
-			if ( this.shadow === undefined ) return false;
-			return this.shadow.enabled;
-		},
-		set: function ( value ) {
-			if ( this.shadow === undefined ) return;
-			this.shadow.enabled = value;
-		}
-	},
 	onlyShadow: {
 		set: function ( value ) {
 			console.warn( 'THREE.Light: .onlyShadow has been removed.' );

+ 0 - 2
src/lights/LightShadow.js

@@ -4,8 +4,6 @@
 
 THREE.LightShadow = function ( camera ) {
 
-	this.enabled = false;
-
 	this.camera = camera;
 
 	this.bias = 0;