thanks for your time, there’s no hurry in any of my questions.
I’ve spent the weekend transplanting you point lights into my game, they look great, thanks again! (although it’s a little sad that I’ve probably spend more time transplanting them than you doing them, but hey… let’s be positive )
I’m targetting the directional light now but I’m observing a problem. I’ve taken the source code at github as is, commented out all point lights, and removed comment for the directional light. The light looks good until moved. When moved, some shadows disappear.
I’ve made a small private video to show it: https://youtu.be/j3BOVjIEmNA
After making the video I found that the directional light “going up” shown at the end of the video can be alleviated with the shadowDepth parameter so you can ignore that part. And anyways, I won’t need a shadow so high.
However I’m unable to understand nor find why the shadow disappears once you move the directional light.
At first I though that maybe the top roof geometry was being skipped because of frustum culling, but I removed the culling forcing all objects to be rendered always ( bool isUsed = true; in MeshMaterialLibrary.Draw ) but the problem persists.
Any ideas on what could be causing that? I’ve been playing a bit with the parameters but I’ve found no combination that works.
Thanks a lot!