TA159

Notas, resueltos y trabajos practicos de la materia Sistemas Gráficos
Index Commits Files Refs Submodules README LICENSE
commit 0eb907bad160733b106a7ed57e7ea5f685e70b03
parent 93db98cfa13e22f889b81d61b2178e6b908e4b54
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date:   Sat, 13 Jul 2024 12:02:10 -0300

remove `trainLight2Helper` since it doesn't cast shadows

because it doesn't cast shadows `trainLight2Helper` remained static in
the scene

Diffstat:
Mtp/src/scene.js | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tp/src/scene.js b/tp/src/scene.js
@@ -518,15 +518,12 @@ function buildLoco() {
     trainLight3.shadow.focus          = 1;
 
     const trainLightHelper = new THREE.CameraHelper(trainLight.shadow.camera);
-    const trainLight2Helper = new THREE.CameraHelper(trainLight2.shadow.camera);
     const trainLight3Helper = new THREE.CameraHelper(trainLight3.shadow.camera);
 
     trainLightHelper.visible  = settings.showHelpers;
-    trainLight2Helper.visible = settings.showHelpers;
     trainLight3Helper.visible = settings.showHelpers;
 
     helpers.push(trainLightHelper);
-    helpers.push(trainLight2Helper);
     helpers.push(trainLight3Helper);
 
     train.scale.set(0.145, 0.145, 0.145);
@@ -876,7 +873,7 @@ function createMenu() {
                 if (child.material) {
                     child.material.needsUpdate = true
                 }
-            })
+            });
         }
     );
     gui.add(settings, "currCameraName", camerasName).name('Camara').setValue(camerasName[settings.currCameraIndex]).onChange(