(t: number)
| 174 | |
| 175 | let animationId: number; |
| 176 | function update(t: number) { |
| 177 | animationId = requestAnimationFrame(update); |
| 178 | program.uniforms.uTime.value = t * 0.001 * speed; |
| 179 | renderer.render({ scene: mesh }); |
| 180 | } |
| 181 | animationId = requestAnimationFrame(update); |
| 182 | |
| 183 | container.appendChild(gl.canvas); |