Per-pixel luminosity adjustment uses a luminosity mask applied as a
texture. In one embodiment, a luminosity texture is defined. Pixel data
of an underlying image is converted to an image texture. The image
texture is blended onto a target surface. The luminosity texture is also
blended onto the target surface, thereby generating luminosity
compensated pixel data for the image.