This is a early version I made a month ago, this is very outdated version as I made better versions that is way less buggy after it. Drag on the screen to look around. https://turbowarp.org/906989749
https://en.wikipedia.org/wiki/Shadow_mapping https://www.opengl-tutorial.org/intermediate-tutorials/tutorial-16-shadow-mapping/ Website that help me a bit ^