cWebGL - Demo 12

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



Initializing…

Use lighting

Point light:

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

Ambient light:

Colour: R: G: B:

Moon texture courtesy of the Jet Propulsion Laboratory.