Code from my computer graphics course: http://www.cs.jhu.edu/~misha/Fall13/#Coursework