Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sunag committed Nov 25, 2024
1 parent 1ba6281 commit 406e169
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/renderers/common/extras/PMREMGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,15 +339,7 @@ class PMREMGenerator {

_fromTexture( texture, renderTarget ) {

if ( texture.mapping === CubeReflectionMapping || texture.mapping === CubeRefractionMapping ) {

this._setSize( texture.image.length === 0 ? 16 : ( texture.image[ 0 ].width || texture.image[ 0 ].image.width ) );

} else { // Equirectangular

this._setSize( texture.image.width / 4 );

}
this._setSizeFromTexture( texture );

_oldTarget = this._renderer.getRenderTarget();
_oldActiveCubeFace = this._renderer.getActiveCubeFace();
Expand Down

0 comments on commit 406e169

Please sign in to comment.