Algorithms for Real-Time Ray Tracing and Lighting Simulation