PRISM: An open source framework for the interactive design of GPU volume rendering shaders
Fig 1
Illustration of the emission-absorption model used to compute the color of a pixel.
A ray is cast from the virtual camera through the pixel in the image plane. The intersection with the volume is found and the volume is sampled at regular interval, the sample value is mapped to optical properties which are composited to obtain the pixel color.