Ray tracing
For each pixel shoot a ray R from camera;
shoot rays to all light sources;
for all visible sources, compute RGB values ri
shoot reflected ray Rrefl; rrefl=TraceRay(Rrefl)
shoot refracted ray Rtrans;rtrans= TraceRay(Rtrans)
compute resulting RGB value from
ri, rrefl, rtrans using the lighting model
The recursive ray tracing procedure: