Browse Source

Light: Remove shadowMapSize. It's only used internally.

Mr.doob 9 years ago
parent
commit
9a2a15a649
2 changed files with 1 additions and 6 deletions
  1. 0 5
      src/lights/Light.js
  2. 1 1
      src/renderers/WebGLRenderer.js

+ 0 - 5
src/lights/Light.js

@@ -114,11 +114,6 @@ Object.defineProperties( THREE.Light.prototype, {
 			this.shadow.map = value;
 			this.shadow.map = value;
 		}
 		}
 	},
 	},
-	shadowMapSize: {
-		get: function () {
-			return this.shadow.mapSize;
-		}
-	},
 	shadowMapWidth: {
 	shadowMapWidth: {
 		get: function () {
 		get: function () {
 			return this.shadow.mapSize.x;
 			return this.shadow.mapSize.x;

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -2010,7 +2010,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 
 					uniforms.shadowMatrix.value[ j ] = light.shadowMatrix;
 					uniforms.shadowMatrix.value[ j ] = light.shadowMatrix;
 					uniforms.shadowMap.value[ j ] = light.shadowMap;
 					uniforms.shadowMap.value[ j ] = light.shadowMap;
-					uniforms.shadowMapSize.value[ j ] = light.shadowMapSize;
+					uniforms.shadowMapSize.value[ j ] = light.shadow.mapSize;
 					uniforms.shadowBias.value[ j ] = light.shadowBias;
 					uniforms.shadowBias.value[ j ] = light.shadowBias;
 
 
 					j ++;
 					j ++;