TA159

Notas, resueltos y trabajos practicos de la materia Sistemas Gráficos
Index Commits Files Refs Submodules README LICENSE
commit 8652768c7c99d8f31120e8c82cfd7856edab2578
parent 23a4d1465dc521b5c6112ad0e35ba3502af8f8f5
Author: mjkloeckner <martinjkloeckner@gmail.com>
Date:   Thu, 14 Mar 2024 13:56:04 -0300

Rename main loop function: animation -> mainLoop

Diffstat:
Mmain.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/main.js b/main.js
@@ -111,11 +111,11 @@ function onResize() {
     renderer.setSize(window.innerWidth, window.innerHeight);
 }
 
-function animate() {
-    requestAnimationFrame(animate);
+function mainLoop() {
+    requestAnimationFrame(mainLoop);
     renderer.render(scene, camera);
 }
 
 setUpThree();
 addGeometries();
-animate();
+mainLoop();