I got shadow mapping working today 😀
I remember writing one of these using OpenGL’s fixed function pipeline a while ago so i knew how to go about doing it. I used reimer’s tutorials as a guide though. Next step is to do CSM(Cascaded Shadow Mapping). jcoluna did it in his light pre pass renderer so i’ll use it as a guide. There’s another link to a sample here.
My code’s a bit messy, but its still available for download