Skip to content

Commit 4e86f50

Browse files
authored
UltraHDRLoader: Fix incorrect alpha channel values. (#32464)
1 parent 06a4e97 commit 4e86f50

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/jsm/loaders/UltraHDRLoader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,11 @@ class UltraHDRLoader extends Loader {
542542

543543
if ( this.type === HalfFloatType ) {
544544

545-
hdrBuffer = new Uint16Array( sdrImageData.data.length ).fill( 23544 );
545+
hdrBuffer = new Uint16Array( sdrImageData.data.length ).fill( 15360 );
546546

547547
} else {
548548

549-
hdrBuffer = new Float32Array( sdrImageData.data.length ).fill( 255 );
549+
hdrBuffer = new Float32Array( sdrImageData.data.length ).fill( 1.0 );
550550

551551
}
552552

3.81 KB
Loading

0 commit comments

Comments
 (0)