1. A computer-implemented method, comprising: receiving an image and, for each pixel in the image, an associated depth value; generating a plurality of copies of the image, each of the copies of the image being associated with a respective number of scattering events; for each copy of the image of the plurality of copies of the image: applying per-pixel weights to pixels of the copy of the image, thereby producing a weighted copy of the image, wherein the per-pixel weight applied to each pixel of the pixels of the copy of the image represents a probability of an associated light ray experiencing the number of scattering events associated with the copy of the image; applying a respective blur to each of the weighted copies of the image based on an associated number of scattering events; and summing the blurred weighted copies of the image.