Skip to content

Commit c1ba7b4

Browse files
committed
Unify setting postprocessing pass size in non-module code
This completes some earlier work that did this change only in modularized code.
1 parent d75e75c commit c1ba7b4

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)