cWebGL - Demo 7

Copied from original lesson at http://learningwebgl.com/blog/?p=684



Initializing…

Use lighting
(Use cursor keys to spin the box and Page Up/Page Down to zoom out/in)

Directional light:

Direction: X: Y: Z:
Colour: R: G: B:

Ambient light:

Colour: R: G: B: