(time: number)
| 208 | let animationFrameId: number; |
| 209 | |
| 210 | function update(time: number) { |
| 211 | animationFrameId = requestAnimationFrame(update); |
| 212 | program.uniforms.iTime.value = time * 0.001; |
| 213 | renderer.render({ scene: mesh }); |
| 214 | } |
| 215 | animationFrameId = requestAnimationFrame(update); |
| 216 | container.appendChild(gl.canvas); |
| 217 |