My implementation of the examples from the GLSL Cookbook