File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,11 @@ class EffectComposer {
1414
1515 this . renderer = renderer ;
1616
17+ this . _pixelRatio = renderer . getPixelRatio ( ) ;
18+
1719 if ( renderTarget === undefined ) {
1820
1921 const size = renderer . getSize ( new Vector2 ( ) ) ;
20- this . _pixelRatio = renderer . getPixelRatio ( ) ;
2122 this . _width = size . width ;
2223 this . _height = size . height ;
2324
@@ -26,7 +27,6 @@ class EffectComposer {
2627
2728 } else {
2829
29- this . _pixelRatio = 1 ;
3030 this . _width = renderTarget . width ;
3131 this . _height = renderTarget . height ;
3232
Original file line number Diff line number Diff line change 138138 //
139139
140140 composer1 = new EffectComposer ( renderer ) ;
141- composer1 . setPixelRatio ( window . devicePixelRatio ) ;
142141 composer1 . addPass ( renderPass ) ;
143142 composer1 . addPass ( copyPass ) ;
144143
145144 //
146145
147146 composer2 = new EffectComposer ( renderer , renderTarget ) ;
148- composer2 . setPixelRatio ( window . devicePixelRatio ) ;
149147 composer2 . addPass ( renderPass ) ;
150148 composer2 . addPass ( copyPass ) ;
151149
You can’t perform that action at this time.
0 commit comments