replace viewDistance with focalLength