I'm trying to implement cascaded shadow maps, using this LearnOpenGL article as a base: https://learnopengl.com/Guest-Articles/2021/CSM.
However, my cascade implementation is completely broken, and I'm not sure what to look for to figure out why. I added a debug draw path that shows which cascade each pixel should be reading (red = first, green = second, blue = third, pink = fourth) and that part seems to be correct. It's probably something to do with the generation of the shadowmaps themselves but I'm not sure what it is
Learn OpenGL . com provides good and clear modern 3.3+ OpenGL tutorials with clear examples. A great resource to learn modern OpenGL aimed at beginners.