1this.animateCallback = {
2 callAnimate: (this.animate).bind(this)
3 };
4 this.animateCallback.callAnimate();
1protected animate() {
2 requestAnimationFrame( this.animateCallback.callAnimate );
3
4 this.mesh.rotation.x += 1;
5 this.mesh.rotation.y += 1;
6
7 this.renderer.render( this.scene, this.camera );
8
9 }