WebGL Lesson 8 – the depth buffer, transparency and blending

Alpha level

(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=859

View the source.