3-channel Game of Life shader

Conway's Game of Life running on all three channels independently, shader code in a comment at the end.
http://johnblackburne.blogspot.co.uk/2012/03/3-channel-game-of-life-shader.html