浏览代码

EffectComposer: Clean up

Mugen87 7 年之前
父节点
当前提交
be6bd29fd1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      examples/js/postprocessing/EffectComposer.js

+ 3 - 3
examples/js/postprocessing/EffectComposer.js

@@ -50,7 +50,7 @@ THREE.EffectComposer = function ( renderer, renderTarget ) {
 
 
 Object.assign( THREE.EffectComposer.prototype, {
 Object.assign( THREE.EffectComposer.prototype, {
 
 
-	swapBuffers: function() {
+	swapBuffers: function () {
 
 
 		var tmp = this.readBuffer;
 		var tmp = this.readBuffer;
 		this.readBuffer = this.writeBuffer;
 		this.readBuffer = this.writeBuffer;
@@ -151,7 +151,7 @@ Object.assign( THREE.EffectComposer.prototype, {
 
 
 		for ( var i = 0; i < this.passes.length; i ++ ) {
 		for ( var i = 0; i < this.passes.length; i ++ ) {
 
 
-			this.passes[i].setSize( width, height );
+			this.passes[ i ].setSize( width, height );
 
 
 		}
 		}
 
 
@@ -178,7 +178,7 @@ THREE.Pass = function () {
 
 
 Object.assign( THREE.Pass.prototype, {
 Object.assign( THREE.Pass.prototype, {
 
 
-	setSize: function( width, height ) {},
+	setSize: function ( width, height ) {},
 
 
 	render: function ( renderer, writeBuffer, readBuffer, delta, maskActive ) {
 	render: function ( renderer, writeBuffer, readBuffer, delta, maskActive ) {