Shadowmap code compling and running, but incorrect

Gives incorrect visual results