| 168 | }; |
| 169 | |
| 170 | export interface SplatSource { |
| 171 | prepareFetchSplat(): void; |
| 172 | dispose(): void; |
| 173 | |
| 174 | getNumSplats(): number; |
| 175 | hasRgbDir(): boolean; |
| 176 | getNumSh(): number; |
| 177 | setMaxSh(maxSh: number): void; |
| 178 | |
| 179 | fetchSplat({ |
| 180 | index, |
| 181 | viewOrigin, |
| 182 | }: { index: DynoVal<"int">; viewOrigin?: DynoVal<"vec3"> }): DynoVal< |
| 183 | typeof Gsplat |
| 184 | >; |
| 185 | |
| 186 | forEachSplat( |
| 187 | callback: ( |
| 188 | index: number, |
| 189 | center: THREE.Vector3, |
| 190 | scales: THREE.Vector3, |
| 191 | quaternion: THREE.Quaternion, |
| 192 | opacity: number, |
| 193 | color: THREE.Color, |
| 194 | ) => void, |
| 195 | ): void; |
| 196 | } |
| 197 | |
| 198 | export class EmptySplatSource implements SplatSource { |
| 199 | fetchDyno = new Dyno({ |
no outgoing calls
no test coverage detected