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