Functions from OpenGL library are used to plot 3D view. According to this the parameters used in the 3D regime are similar to the standard OpenGL parameters of lighting equation. The equation is as follows:

, where