remove flickering
This commit is contained in:
parent
7b0dbddc45
commit
85f0054fd9
@ -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);
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user