()
| 146 | } |
| 147 | |
| 148 | function createTinyGaussianSpzEntry(): TestDatasetFileEntry { |
| 149 | const cloud: Parameters<typeof saveSPZ>[0] = { |
| 150 | count: 1, |
| 151 | positions: new Float32Array([0, 0, 1]), |
| 152 | scales: new Float32Array([0.05, 0.05, 0.05]), |
| 153 | rotations: new Float32Array([1, 0, 0, 0]), |
| 154 | opacities: new Float32Array([0.95]), |
| 155 | sh0: rgbToSHDC(new Float32Array([1, 0, 0])), |
| 156 | shDegree: 0, |
| 157 | }; |
| 158 | |
| 159 | return { |
| 160 | relativePath: 'splats/tiny-gaussian.spz', |
| 161 | name: 'tiny-gaussian.spz', |
| 162 | base64: Buffer.from(new Uint8Array(saveSPZ(cloud))).toString('base64'), |
| 163 | }; |
| 164 | } |
| 165 | |
| 166 | function createSolidPngBase64( |
| 167 | width: number, |
no outgoing calls
no test coverage detected