()
| 79 | } |
| 80 | |
| 81 | animate() { |
| 82 | // NOTE: Window is implied. |
| 83 | // requestAnimationFrame(this.animate.bind(this)); |
| 84 | window.requestAnimationFrame(this.animate.bind(this)); |
| 85 | this.render(); |
| 86 | this.stats.update(); |
| 87 | this.controls.update(); |
| 88 | } |
| 89 | |
| 90 | render() { |
| 91 | // NOTE: Update uniform data on each render. |