Copied from original lesson at http://learningwebgl.com/blog/?p=1523
Initializing…
Use lighting
Per-fragment lighting
Use textures
Point light:
Location: | X: | Y: | Z: |
Colour: | R: | G: | B: |
Ambient light:
Colour: | R: | G: | B: |
Moon texture courtesy of the Jet Propulsion Laboratory.