@@ -452,13 +452,13 @@ export class SplatMesh extends THREE.Mesh {
452452 const position = new THREE . Vector3 ( ) . fromArray ( positionArray ) ;
453453 const rotation = new THREE . Quaternion ( ) . fromArray ( rotationArray ) ;
454454 const scale = new THREE . Vector3 ( ) . fromArray ( scaleArray ) ;
455- scenes [ i ] = SplatMesh . createScene ( splatBuffer , position , rotation , scale ) ;
455+ scenes [ i ] = SplatMesh . createScene ( splatBuffer , position , rotation , scale , options . splatAlphaRemovalThreshold || 1 ) ;
456456 }
457457 return scenes ;
458458 }
459459
460- static createScene ( splatBuffer , position , rotation , scale ) {
461- return new SplatScene ( splatBuffer , position , rotation , scale ) ;
460+ static createScene ( splatBuffer , position , rotation , scale , minimumAlpha ) {
461+ return new SplatScene ( splatBuffer , position , rotation , scale , minimumAlpha ) ;
462462 }
463463
464464 /**
@@ -1516,7 +1516,7 @@ export class SplatMesh extends THREE.Mesh {
15161516 srcFrom , srcTo , localDestFrom , this . halfPrecisionCovariancesOnGPU ? 1 : 0 ) ;
15171517 }
15181518 if ( centers ) splatBuffer . fillSplatCenterArray ( centers , sceneTransform , srcFrom , srcTo , localDestFrom ) ;
1519- if ( colors ) splatBuffer . fillSplatColorArray ( colors , sceneTransform , srcFrom , srcTo , localDestFrom ) ;
1519+ if ( colors ) splatBuffer . fillSplatColorArray ( colors , scene . minimumAlpha , sceneTransform , srcFrom , srcTo , localDestFrom ) ;
15201520 destfrom += splatBuffer . getSplatCount ( ) ;
15211521 }
15221522 }
0 commit comments