cWebGL - Demo 11

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




Initializing…
Use lighting
Spin the moon by dragging it with the mouse.

Directional light:

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

Ambient light:

Colour: R: G: B:

Moon texture courtesy of the Jet Propulsion Laboratory.