| 294 | const width = 96; |
| 295 | const height = 64; |
| 296 | const makeCloud = ( |
| 297 | position: [number, number, number], |
| 298 | scale = 0.12 |
| 299 | ): BrowserGaussianCloud => ({ |
| 300 | count: 1, |
| 301 | positions: new Float32Array(position), |
| 302 | scales: new Float32Array([scale, scale, scale]), |
| 303 | rotations: new Float32Array([1, 0, 0, 0]), |
| 304 | opacities: new Float32Array([0.95]), |
| 305 | sh0: new Float32Array([ |
| 306 | (1.0 - 0.5) / shC0, |
| 307 | (0.1 - 0.5) / shC0, |
| 308 | (0.1 - 0.5) / shC0, |
| 309 | ]), |
| 310 | shDegree: 0, |
| 311 | }); |
| 312 | const makeCamera = (params: number[]) => ({ |
| 313 | cameraId: 1, |
| 314 | modelId: 1, |