Skip to content

Commit

Permalink
Fix bug introduced in mrdoob#78 (mrdoob#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
chubei-oppen committed Mar 17, 2022
1 parent f93854c commit e667d62
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/extras/PMREMGenerator.js
Expand Up @@ -235,7 +235,7 @@ class PMREMGenerator {
generateMipmaps: false,
type: UnsignedByteType,
format: RGBEFormat,
encoding: _isLDR( texture ) ? texture.encoding : RGBEEncoding,
encoding: RGBEEncoding,
depthBuffer: false
};

Expand Down Expand Up @@ -577,14 +577,6 @@ class PMREMGenerator {

}

function _isLDR( texture ) {

if ( texture === undefined || texture.type !== UnsignedByteType ) return false;

return texture.encoding === LinearEncoding || texture.encoding === sRGBEncoding;

}

function _createPlanes() {

const _lodPlanes = [];
Expand Down

0 comments on commit e667d62

Please sign in to comment.