resolve #11, make sure ray direction is unit for intersection testing