New answers tagged raytracing
You need to use the range instead of the distance when you cast the ray. The range is the length of the projection of the ray onto the camera plane. See this source. Though IMHO some amount of fisheye distortion is kind of cool to keep around.
Top 50 recent answers are included