made better shadow body calculations so that the z coordinate of the light effects the cast light