Rendering shadows correctly with a custom projection matrix

Hi all,

I’m a bit of a noob when it comes to shaders. I recently started using custom projection matrices that break shadows (which I understand to be a general issue) and I am wondering if writing my own shaders will solve this issue. What happens is that my shadows appear in weird places with weird shapes.

I’m assuming my problem relates to this

although my shadows look even more fucked up that any shown in there. Given that this was a year ago, I’m hoping there’s some new insight on this.

How would I go about getting started solving this issue, perhaps through making a custom shader? Or is this not something that’s feasible to attempt for a beginner? Does anyone know if buying an asset, as suggested in that other thread, would fix this?
Grateful for any help!

Cheers,
Luise

I haven’t tried to fix this in a while, but I just went back to it and tried setting the directional light to mixed or baked and this works. Should probably have thought of that earlier. Still if anyone has a moment to explain to me why it doesn’t work in real time I’d be super grateful!