Most of the code goes to griffpatch I just adapted it. I made the looking up and down. sorted out the shading behind the walls