Fix shadow map implementation

Man, the project writeup has some serious gaps.