05.01.2002
For lighting are important vectors to perpendicular on surfaces (normal vectors). These vectors are use to compute lighting.
Program draws cube two ways:
First cube (at left) has one normal vector on side.
Second cube (at right) has one normal vector on vertex.
source code and executable – 95kB