diff --git a/src/game/game.ts b/src/game/game.ts index 01d0cf9..aa7b21d 100644 --- a/src/game/game.ts +++ b/src/game/game.ts @@ -108,10 +108,16 @@ class Game implements ThreeScene { let pl = new THREE.PointLight(0x8090ff, 10, 0,0.3); pl.position.set(40, -40, 25); pl.castShadow = true; + pl.shadow.mapSize.width = 2048; + pl.shadow.mapSize.height = 2048; + pl.shadow.bias = -0.001; this.scene.add(pl); let pl1 = new THREE.PointLight(0xff9080, 10, 0,0.3); pl1.position.set(-40, 40, 25); pl1.castShadow = true; + pl1.shadow.mapSize.width = 2048; + pl1.shadow.mapSize.height = 2048; + pl1.shadow.bias = -0.001; this.scene.add(pl1); }