Design and applications of a real-time shading system