Figure 7: Principle of raytracing algorithm.