commit c4f4a4386b7a2b8c1ae1b36b0bc3ebd6ab73de4c
parent 34ab1ed81460fed0c3609b1b5efd134a5337a7f0
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date: Mon, 8 Jul 2024 13:06:11 -0300
show `trainLight2`
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tp/src/scene.js b/tp/src/scene.js
@@ -484,8 +484,8 @@ function buildLoco() {
trainLight.target.updateMatrixWorld();
trainLight2 = new THREE.SpotLight(0xffffff, 10.0, 3.0, Math.PI/6, 0.5, 0.5);
- // train.add(trainLight2.target);
- // train.add(trainLight2);
+ train.add(trainLight2.target);
+ train.add(trainLight2);
trainLight2.position.set(0, 3.25, 15);
trainLight2.target.position.set(0, 0, -100);
trainLight2.target.updateMatrixWorld();