lwjglgamedev/lwjglbook-leg

Problems with shadows

Kelvin285 opened this issue · 1 comments

I'm having a bit of trouble with rendering shadows where the shadow map gets distorted in a very strange way. I've compared my code with the sources from the tutorial, and I haven't found any differences other than how the models are batched together. I was working on trying to fix this issue for around 4 hours, but couldn't find any working solutions.
image

Nevermind, I managed to fix it by changing the OrthoCoords for the directional light.