Skip to content

Commit

Permalink
RGBELoader: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Aug 23, 2021
1 parent b834b55 commit 3a2f592
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/jsm/loaders/RGBELoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,8 +386,8 @@ class RGBELoader extends DataTextureLoader {

case FloatType:

numElements = ( image_rgba_data.length / 4 ) * 3;
const floatArray = new Float32Array( numElements );
numElements = image_rgba_data.length / 4;
const floatArray = new Float32Array( numElements * 3 );

for ( let j = 0; j < numElements; j ++ ) {

Expand All @@ -402,8 +402,8 @@ class RGBELoader extends DataTextureLoader {

case HalfFloatType:

numElements = ( image_rgba_data.length / 4 ) * 3;
const halfArray = new Uint16Array( numElements );
numElements = image_rgba_data.length / 4;
const halfArray = new Uint16Array( numElements * 3 );

for ( let j = 0; j < numElements; j ++ ) {

Expand Down

0 comments on commit 3a2f592

Please sign in to comment.