Преглед на файлове

WebGLRenderer: Minor clean up.

Mr.doob преди 10 години
родител
ревизия
a14f4b2c57
променени са 1 файла, в които са добавени 11 реда и са изтрити 11 реда
  1. 11 11
      src/renderers/WebGLRenderer.js

+ 11 - 11
src/renderers/WebGLRenderer.js

@@ -285,7 +285,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 	// shadow map
 	// shadow map
 
 
 	var shadowMap = new THREE.WebGLShadowMap( this, lights, _webglObjects, _webglObjectsImmediate );
 	var shadowMap = new THREE.WebGLShadowMap( this, lights, _webglObjects, _webglObjectsImmediate );
-
+	
 	this.shadowMap = shadowMap;
 	this.shadowMap = shadowMap;
 
 
 	// GPU capabilities
 	// GPU capabilities
@@ -4780,47 +4780,47 @@ THREE.WebGLRenderer = function ( parameters ) {
 	Object.defineProperties( this, {
 	Object.defineProperties( this, {
 		shadowMapEnabled: {
 		shadowMapEnabled: {
 			get: function () {
 			get: function () {
-				return this.shadowMap.enabled;
+				return shadowMap.enabled;
 			},
 			},
 			set: function ( value ) {
 			set: function ( value ) {
 				THREE.warn( 'THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled.' );
 				THREE.warn( 'THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled.' );
-				this.shadowMap.enabled = value;
+				shadowMap.enabled = value;
 			}
 			}
 		},
 		},
 		shadowMapType: {
 		shadowMapType: {
 			get: function () {
 			get: function () {
-				return this.shadowMap.type;
+				return shadowMap.type;
 			},
 			},
 			set: function ( value ) {
 			set: function ( value ) {
 				THREE.warn( 'THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type.' );
 				THREE.warn( 'THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type.' );
-				this.shadowMap.type = value;
+				shadowMap.type = value;
 			}
 			}
 		},
 		},
 		shadowMapCullFace: {
 		shadowMapCullFace: {
 			get: function () {
 			get: function () {
-				return this.shadowMap.cullFace;
+				return shadowMap.cullFace;
 			},
 			},
 			set: function ( value ) {
 			set: function ( value ) {
 				THREE.warn( 'THREE.WebGLRenderer: .shadowMapCullFace is now .shadowMap.cullFace.' );
 				THREE.warn( 'THREE.WebGLRenderer: .shadowMapCullFace is now .shadowMap.cullFace.' );
-				this.shadowMap.cullFace = value;
+				shadowMap.cullFace = value;
 			}
 			}
 		},
 		},
 		shadowMapDebug: {
 		shadowMapDebug: {
 			get: function () {
 			get: function () {
-				return this.shadowMap.debug;
+				return shadowMap.debug;
 			},
 			},
 			set: function ( value ) {
 			set: function ( value ) {
 				THREE.warn( 'THREE.WebGLRenderer: .shadowMapDebug is now .shadowMap.debug.' );
 				THREE.warn( 'THREE.WebGLRenderer: .shadowMapDebug is now .shadowMap.debug.' );
-				this.shadowMap.debug = value;
+				shadowMap.debug = value;
 			}
 			}
 		},
 		},
 		shadowMapCascade: {
 		shadowMapCascade: {
 			get: function () {
 			get: function () {
-				return this.shadowMap.cascade;
+				return shadowMap.cascade;
 			},
 			},
 			set: function ( value ) {
 			set: function ( value ) {
 				THREE.warn( 'THREE.WebGLRenderer: .shadowMapCascade is now .shadowMap.cascade.' );
 				THREE.warn( 'THREE.WebGLRenderer: .shadowMapCascade is now .shadowMap.cascade.' );
-				this.shadowMap.cascade = value;
+				shadowMap.cascade = value;
 			}
 			}
 		}
 		}
 	} );
 	} );