Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions examples/jsm/loaders/EXRLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2515,7 +2515,7 @@ class EXRLoader extends DataTextureLoader {
EXRDecoder.outputChannels = 1;
EXRDecoder.decodeChannels = { R: 0 };

} else {
} else {

invalidOutput = true;

Expand Down Expand Up @@ -2549,7 +2549,7 @@ class EXRLoader extends DataTextureLoader {
EXRDecoder.outputChannels = 1;
EXRDecoder.decodeChannels = { Y: 0 };

} else {
} else {

invalidOutput = true;

Expand All @@ -2563,7 +2563,7 @@ class EXRLoader extends DataTextureLoader {

}

if (invalidOutput) throw new Error( 'EXRLoader.parse: invalid output format for specified file.' );
if ( invalidOutput ) throw new Error( 'EXRLoader.parse: invalid output format for specified file.' );

if ( EXRDecoder.type == 1 ) {

Expand Down Expand Up @@ -2712,12 +2712,12 @@ class EXRLoader extends DataTextureLoader {
if ( this.outputFormat == RGBAFormat ) {

for ( let i = 0; i < byteArray.length; i += 4 )
byteArray [i + 2 ] = ( byteArray [ i + 1 ] = byteArray[ i ] );
byteArray[ i + 2 ] = ( byteArray[ i + 1 ] = byteArray[ i ] );

} else if ( this.outputFormat == RGFormat ) {

for ( let i = 0; i < byteArray.length; i += 2 )
byteArray [ i + 1 ] = byteArray[ i ] ;
byteArray[ i + 1 ] = byteArray[ i ];

}

Expand Down
2 changes: 1 addition & 1 deletion examples/jsm/loaders/HDRCubeTextureLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class HDRCubeTextureLoader extends Loader {
*
* @type {HDRLoader}
*/
this.hdrLoader = new HDRLoader();
this.hdrLoader = new HDRLoader();

/**
* The texture type.
Expand Down
Loading
Loading