WebGL Lesson 7 – basic directional and ambient 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:

A clojurescript implementation of http://learningwebgl.com/blog/?p=684

View the source.