I'm doing shadow maps starting with directional lights thinking it would be simpler, untill I realised I have no idea how the actual view and perspective matrices are computed, since all I have is the light direction.
Judging from what Ive found it seems I need an orthographic perspective matrix yet I havnt found a good explanation on what it actually is and how it is constructed using for example glm::ortho.
And the view matrix itself is puzzling.
Any pointers?