precise shadowcasting - preparations
precise shadowcasting, first draft