Skip to content

Commit 71c6c3d

Browse files
authored
Merge pull request #17037 from higharc/postprocess-pass-size-fix
Unify setting postprocessing pass size
2 parents 94b5280 + 9e0c4d6 commit 71c6c3d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/jsm/postprocessing/EffectComposer.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,7 @@ Object.assign( EffectComposer.prototype, {
9090
addPass: function ( pass ) {
9191

9292
this.passes.push( pass );
93-
94-
var size = this.renderer.getDrawingBufferSize( new Vector2() );
95-
pass.setSize( size.width, size.height );
93+
pass.setSize( this._width * this._pixelRatio, this._height * this._pixelRatio );
9694

9795
},
9896

0 commit comments

Comments
 (0)