Example

The source code for the applet can be found here.

Advantages of Ray Tracing:

Disadvantages: