()
| 459 | |
| 460 | |
| 461 | private animate (): void { |
| 462 | requestAnimationFrame(this.animate) |
| 463 | const delta_time: number = this.clock.getDelta() |
| 464 | |
| 465 | this.scene_environment.frame_change() |
| 466 | |
| 467 | // camera shake effect |
| 468 | this.camera_shake.update(delta_time) |
| 469 | |
| 470 | // if we are in the animation listing step, we can call |
| 471 | // render/update functions in that |
| 472 | if (this.process_step === ProcessStep.AnimationsListing) { |
| 473 | this.animations_listing_step.frame_change(delta_time) |
| 474 | } |
| 475 | |
| 476 | this.renderer.render(this.scene, this.camera) |
| 477 | |
| 478 | // view helper |
| 479 | this.view_helper.render(this.renderer) // updates current viewport |
| 480 | if (this.view_helper.animating) { |
| 481 | this.view_helper.update(delta_time) // updates animation when clicking on axis |
| 482 | } |
| 483 | } |
| 484 | |
| 485 | public changed_model_preview_display (mesh_textured_display_type: ModelPreviewDisplay): void { |
| 486 | this.mesh_preview_display_type = mesh_textured_display_type |
no test coverage detected