remove flickering

This commit is contained in:
Marius Unsel 2026-02-24 01:37:52 +01:00
parent 7b0dbddc45
commit 85f0054fd9

View File

@ -108,10 +108,16 @@ class Game implements ThreeScene {
let pl = new THREE.PointLight(0x8090ff, 10, 0,0.3); let pl = new THREE.PointLight(0x8090ff, 10, 0,0.3);
pl.position.set(40, -40, 25); pl.position.set(40, -40, 25);
pl.castShadow = true; pl.castShadow = true;
pl.shadow.mapSize.width = 2048;
pl.shadow.mapSize.height = 2048;
pl.shadow.bias = -0.001;
this.scene.add(pl); this.scene.add(pl);
let pl1 = new THREE.PointLight(0xff9080, 10, 0,0.3); let pl1 = new THREE.PointLight(0xff9080, 10, 0,0.3);
pl1.position.set(-40, 40, 25); pl1.position.set(-40, 40, 25);
pl1.castShadow = true; pl1.castShadow = true;
pl1.shadow.mapSize.width = 2048;
pl1.shadow.mapSize.height = 2048;
pl1.shadow.bias = -0.001;
this.scene.add(pl1); this.scene.add(pl1);
} }