MCPcopy Index your code
hub / github.com/sparkjsdev/spark / constructor

Method constructor

src/SplatLoader.ts:772–780  ·  view source on GitHub ↗
({ maxSplats = 1 }: { maxSplats?: number } = {})

Source from the content-addressed store, hash-verified

770 sh3?: Float32Array;
771
772 constructor({ maxSplats = 1 }: { maxSplats?: number } = {}) {
773 this.numSplats = 0;
774 this.maxSplats = getTextureSize(maxSplats).maxSplats;
775 this.centers = new Float32Array(this.maxSplats * 3);
776 this.scales = new Float32Array(this.maxSplats * 3);
777 this.quaternions = new Float32Array(this.maxSplats * 4);
778 this.opacities = new Float32Array(this.maxSplats);
779 this.colors = new Float32Array(this.maxSplats * 3);
780 }
781
782 pushSplat(): number {
783 const index = this.numSplats;

Callers

nothing calls this directly

Calls 1

getTextureSizeFunction · 0.90

Tested by

no test coverage detected