A Mesh with Lighting

If we want to determine the shading of each face, we need normal vectors. The normal is an attribute of the vertex, just as is the color.

$i$$p_x$$p_y$$p_z$$r$$g$$b$$n_x$$n_y$$n_z$
0 0.0 1.0 0.51.01.00.90.00.01.0
1−0.5 0.5 0.51.01.00.90.00.01.0
2−0.5 0.0 0.51.01.00.90.00.01.0
3 0.5 0.0 0.51.01.00.90.00.01.0
4 0.5 0.5 0.51.01.00.90.00.01.0
5 0.0 1.0−0.51.01.00.90.00.01.0
6−0.5 0.5−0.51.01.00.9 ? ? ?
7−0.5 0.0−0.51.01.00.9 ? ? ?
8 0.5 0.0−0.51.01.00.9 ? ? ?
9 0.5 0.5−0.51.01.00.9 ? ? ?
10 0.0 1.0 0.50.80.00.0 ? ? ?
11−0.5 0.5 0.50.80.00.0 ? ? ?
12 0.5 0.5 0.50.80.00.0 ? ? ?
13 0.0 1.0−0.50.80.00.0 ? ? ?
14−0.5 0.5−0.50.80.00.0 ? ? ?
15 0.5 0.5−0.50.80.00.0 ? ? ?