()
| 86 | } |
| 87 | |
| 88 | render() { |
| 89 | // NOTE: Update uniform data on each render. |
| 90 | this.uniforms.u_time.value += this.clock.getDelta(); |
| 91 | this.renderer.render(this.scene, this.camera); |
| 92 | } |
| 93 | |
| 94 | onWindowResize() { |
| 95 | this.camera.aspect = window.innerWidth / window.innerHeight; |