Essential ray tracing algorithms