浏览代码

Add resizing support to AfterimagePass

Olli Etuaho 6 年之前
父节点
当前提交
9e402e577b
共有 1 个文件被更改,包括 7 次插入0 次删除
  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 );
+
 	}
 
 } );