Skip to content

Commit 6c5b39c

Browse files
authored
Merge pull request #17043 from Oletus/postprocess-pass-size-fix2
Unify setting postprocessing pass size in non-module code
2 parents d75e75c + c1ba7b4 commit 6c5b39c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/js/postprocessing/EffectComposer.js

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

7777
this.passes.push( pass );
78-
79-
var size = this.renderer.getDrawingBufferSize( new THREE.Vector2() );
80-
pass.setSize( size.width, size.height );
78+
pass.setSize( this._width * this._pixelRatio, this._height * this._pixelRatio );
8179

8280
},
8381

0 commit comments

Comments
 (0)