Example
 
 The source code for the applet can be found here. 
Advantages of Ray Tracing:  
  -  
    Improved realism over the graphics pipeline 
-  
    Higher level rendering primitives 
-  
    Very simple design 
Disadvantages: 
  - 
    Very slow per pixel calculations 
- 
    Only approximates full global illumination 
- 
    Hard to accelerate with special-purpose H/W