Adding shadow mapping via light map depth testing in my software renderer for Shard Master.
I read the wikipedia page (https://en.wikipedia.org/wiki/Shadow_mapping) to understand the concept and also watched thebennybox’s video on the concept of it (https://www.youtube.com/watch?v=EsccgeUpdsM)
There are still a ton of artifacts and the shadows are hideous but it is still a work in progress.
This is the world drawn from the light source’s point of view (ignore the player image drawn in the middle)
Did tons of work on artifact removal, light map moving, switched from perspective projected shadows to orthogonal since it’s from the sun, and added a player shadow that makes the 2D player image feel 3D
Player has shadow casted upon him by building