More shadow mapping code. Getting very close now.