Ver Fonte

EffectComposer: Clean up

Mugen87 há 7 anos atrás
pai
commit
be6bd29fd1
1 ficheiros alterados com 3 adições e 3 exclusões
  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, {
 
-	swapBuffers: function() {
+	swapBuffers: function () {
 
 		var tmp = this.readBuffer;
 		this.readBuffer = this.writeBuffer;
@@ -151,7 +151,7 @@ Object.assign( THREE.EffectComposer.prototype, {
 
 		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, {
 
-	setSize: function( width, height ) {},
+	setSize: function ( width, height ) {},
 
 	render: function ( renderer, writeBuffer, readBuffer, delta, maskActive ) {