Przeglądaj źródła

Update formatting to match code style cd

Ewa Gasperowicz 7 lat temu
rodzic
commit
310d681866
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      examples/js/workers/OffscreenCanvas.js

+ 4 - 0
examples/js/workers/OffscreenCanvas.js

@@ -65,9 +65,13 @@ function animate() {
 	renderer.render( scene, camera );
 
 	if ( self.requestAnimationFrame ) {
+
 		self.requestAnimationFrame( animate );
+
 	} else if ( renderer.context.commit ) {
+
 		renderer.context.commit().then( animate );
+
 	}
 
 }