The method for fabricating an optic, comprising: determining a deblurred illumination pattern by deblurring the target illumination pattern with a spatially variant blur function; and determining a freeform optical surface transforming incident light emitted by a spatially extended light source into a constellation of images of the spatially extended light source, wherein the freeform optical surface is determined for a zero-étendue light source such that the freeform optical surface illuminated by the zero-étendue light source forms the deblurred illumination pattern, wherein the images are mixed to form a target illumination pattern having a sharp-edge at least along a portion of a boundary, wherein the images include a focused image, and wherein an edge of the focused image participates in forming the sharp-edged boundary the target illumination pattern; determining an initial freeform optical surface transforming incident light emitted by a zero-étendue light source into the target illumination pattern; determining a spatially variant blur function that captures a blur of the target illumination pattern illuminated by a spatially extended light source; and deblurring the target illumination with the spatially variant blur function to determine the deblurred illumination pattern, characterized in that the deblurring is accomplished by minimizing an error function f ( d) = (∥ Bd - t ∥ 2) 2 + λ (∥ ∇ ( Bd) ∥ W) 2 which is subject to the constraint that d≥0 and where d is a solution vector including all values of an estimate of the deblurred target illumination pattern, t is a vector including all the values in the target illumination pattern, B is the spatially variant blur function, Bd is a matrix-vector product giving a blurred version of the deblurred target illumination pattern as a spatially variant convolution, (∥ Bd - t ∥ 2) 2 is the sum-squared difference between the target illumination pattern and a simulated illumination pattern, V is the gradient operator and ∇ ( Bd) is the divergence of the simulated illumination pattern corresponding to an image that maps out its brightness variations, where (∥ ∇ ( Bd) ∥ W) 2 sums the squares these variations except when they are located near where sharp edges are desired in the target illumination pattern; and fabricating the optic having the freeform optical surface. determining a deblurred illumination pattern by deblurring the target illumination pattern with a spatially variant blur function; and determining a freeform optical surface transforming incident light emitted by a spatially extended light source into a constellation of images of the spatially extended light source, wherein the freeform optical surface is determined for a zero-étendue light source such that the freeform optical surface illuminated by the zero-étendue light source forms the deblurred illumination pattern, wherein the images are mixed to form a target illumination pattern having a sharp-edge at least along a portion of a boundary, wherein the images include a focused image, and wherein an edge of the focused image participates in forming the sharp-edged boundary the target illumination pattern; determining an initial freeform optical surface transforming incident light emitted by a zero-étendue light source into the target illumination pattern; determining a spatially variant blur function that captures a blur of the target illumination pattern illuminated by a spatially extended light source; and deblurring the target illumination with the spatially variant blur function to determine the deblurred illumination pattern, characterized in that the deblurring is accomplished by minimizing an error function f ( d) = (∥ Bd - t ∥ 2) 2 + λ (∥ ∇ ( Bd) ∥ W) 2 which is subject to the constraint that d≥0 and where d is a solution vector including all values of an estimate of the deblurred target illumination pattern, t is a vector including all the values in the target illumination pattern, B is the spatially variant blur function, Bd is a matrix-vector product giving a blurred version of the deblurred target illumination pattern as a spatially variant convolution, (∥ Bd - t ∥ 2) 2 is the sum-squared difference between the target illumination pattern and a simulated illumination pattern, V is the gradient operator and ∇ ( Bd) is the divergence of the simulated illumination pattern corresponding to an image that maps out its brightness variations, where (∥ ∇ ( Bd) ∥ W) 2 sums the squares these variations except when they are located near where sharp edges are desired in the target illumination pattern; and fabricating the optic having the freeform optical surface.