Selaa lähdekoodia

Add resizing support to AfterimagePass

Olli Etuaho 6 vuotta sitten
vanhempi
commit
9e402e577b
1 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. 7 0
      examples/js/postprocessing/AfterimagePass.js

+ 7 - 0
examples/js/postprocessing/AfterimagePass.js

@@ -78,6 +78,13 @@ THREE.AfterimagePass.prototype = Object.assign( Object.create( THREE.Pass.protot
 
 
 		}
 		}
 
 
+	},
+
+	setSize: function ( width, height ) {
+
+		this.textureComp.setSize( width, height );
+		this.textureOld.setSize( width, height );
+
 	}
 	}
 
 
 } );
 } );