({ maxSplats = 1 }: { maxSplats?: number } = {})
| 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; |
nothing calls this directly
no test coverage detected