Explorar o código

Add resizing support to AfterimagePass

Olli Etuaho %!s(int64=6) %!d(string=hai) anos
pai
achega
9e402e577b
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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 );
+
 	}
 
 } );