提交 c1ba7b4b 编写于 作者: O Olli Etuaho

Unify setting postprocessing pass size in non-module code

This completes some earlier work that did this change only in modularized code.
上级 d75e75c8
......@@ -75,9 +75,7 @@ Object.assign( THREE.EffectComposer.prototype, {
addPass: function ( pass ) {
this.passes.push( pass );
var size = this.renderer.getDrawingBufferSize( new THREE.Vector2() );
pass.setSize( size.width, size.height );
pass.setSize( this._width * this._pixelRatio, this._height * this._pixelRatio );
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册