Apologies if this is a naive question. I am a beginner, trying to create a room with no roof(i.e light coming from sun, directly). I am using a directional light with ShadowGenerator to get shadows of room walls cast on the floor and other walls.
I guess, I was able to create that but there is a slight problem to it which I am unable to figure out how can be solved.
Issue: As you can see from the image below there is a slight leak of light present(between the walls). That is what I am trying to fix(remove).
I have tried the following things; some of them have reduced the issue(and the results you can see in the image above) but the issue is not yet completely gone.
- Tried joining the walls as a single mesh (did I call out that I am a beginner ?)
- Set light.shadowMinZ = 1 and light.shadowMaxZ = 2000; this has reduced the leak(earlier the leak was much bigger)
- Tried setting scene.shadowEnabled = true.
- Tried setting light.shadowFrustumSize = 18.1 which fixed the leak, but rendered the shadows in incorrect shape.
I wanted to understand how can I fix it, in case if it is not fixable, should the recommendation is to create the room/environment in tools like blender with baked lights and then expert it to babylonjs ?