Some fixes to raycast lighting