Based on Giles Thomas's
http://learningwebgl.com/blog/?p=28
, licensed
CC-BY-SA
.