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