This is an interactive WebGL version of Samples 3-4 from Chapter 2 of Telea, A. C., Data Visualization: Principles and Practice, second edition, CRC Press, September 2014.
The lighting in this example is based on the sample program LightedCube.js from Chapter 8 of Matsuda, K., and Lea, R. WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL, Addison-Wesley, 2013.
Mouse control: orbit - left button, zoom - middle button, pan - right button.