From 406e1692e629ad633e69c312122302422be9998d Mon Sep 17 00:00:00 2001 From: sunag Date: Mon, 25 Nov 2024 03:34:03 -0300 Subject: [PATCH] cleanup --- src/renderers/common/extras/PMREMGenerator.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/renderers/common/extras/PMREMGenerator.js b/src/renderers/common/extras/PMREMGenerator.js index 2884be18d7a37d..5cb254c865ee46 100644 --- a/src/renderers/common/extras/PMREMGenerator.js +++ b/src/renderers/common/extras/PMREMGenerator.js @@ -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();