implemented more code for shadow mapping