(autoUpdate: boolean)
| 264 | // Turn this on or off depending on whether you expect to do renders from |
| 265 | // this viewpoint most frames. |
| 266 | setAutoUpdate(autoUpdate: boolean) { |
| 267 | if (!this.autoUpdate && autoUpdate) { |
| 268 | this.spark.autoViewpoints.push(this); |
| 269 | } else if (this.autoUpdate && !autoUpdate) { |
| 270 | this.spark.autoViewpoints = this.spark.autoViewpoints.filter( |
| 271 | (v) => v !== this, |
| 272 | ); |
| 273 | } |
| 274 | this.autoUpdate = autoUpdate; |
| 275 | } |
| 276 | |
| 277 | // See below async prepareRenderPixels() for explanation of parameters. |
| 278 | // Awaiting this method updates the Gsplats in the scene and performs a sort of the |
no outgoing calls
no test coverage detected