Skip to content

Commit

Permalink
Small style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Sep 27, 2023
1 parent 68bf1a5 commit 296d31d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/three/PNTSLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ export class PNTSLoader extends PNTSLoaderBase {
for ( let i = 0; i < POINTS_LENGTH; i ++ ) {

const rgbColor = rgb565torgb( RGB565[ i ] );

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

const index = 3 * i + j;
Expand All @@ -148,7 +147,7 @@ export class PNTSLoader extends PNTSLoaderBase {

} else if ( CONSTANT_RGBA !== null ) {

const color = new Color( `rgb(${CONSTANT_RGBA[ 0 ]}, ${CONSTANT_RGBA[ 1 ]}, ${CONSTANT_RGBA[ 2 ]})` );
const color = new Color( CONSTANT_RGBA[ 0 ], CONSTANT_RGBA[ 1 ], CONSTANT_RGBA[ 2 ] );
material.color = color;
const opacity = CONSTANT_RGBA[ 3 ] / 255;
if ( opacity < 1 ) {
Expand Down

0 comments on commit 296d31d

Please sign in to comment.