A system and method for reshaping a cornea of a patient's eye to treat presbyopia are disclosed as well as a method of generating a computer program for use in such system. Ray tracing is used to determine an ablation pattern that defines an amount of corneal tissue to be ablated, wherein the ablation pattern achieves a pre-defined amount of at least one of sphere, spherical aberration, coma, and astigmatism in the eye.