I guess he is attempting to measure the length of casted ray (distance to an object) to render 3D map.