Realism has been a major driving force since the inception of the field of computer graphics, and algorithms that generate photorealistic images using physical simulations are now in widespread use. These algorithms are normally used in a "forward” sense: given an input scene, they produce an output image.