I’m having issues with fireflies when using directional light. When I tried using ambient light, this did not happen.
Here is the issue:
I read that increasing size of light source can solve this, but I had no luck. Here’s how I’m adding light:
const light = new THREE.DirectionalLight(0xffffff, 1);
light.shadow.camera.left = -3000;
light.shadow.camera.right = 3000;
light.shadow.camera.top = 3500;
light.shadow.camera.bottom = -3000;
light.castShadow = true;
light.shadow.mapSize.x = 2048
light.shadow.mapSize.y = 2048
this.scene.add(light);
Also, the code for setting the size of the light doesn’t seem to work.