So, I decided to do a 1k webgl version of my JS1K entry I did in 2010, http://js1k.com/2010-first/demo/704. This version also adds reflections, and some fake soft shadows.
The submission ID from the 2010 competition was 704, so I started to call the effect 704, that's where the name comes from.
There is a standalone 1K that uses PNG compression: http://www.pouet.net/prod.php?which=62822
There also is a ShaderToy version here: https://www.shadertoy.com/view/Xdj3Dt
To fit into 1k I had to remove some optimizations, so the JS1k version, and the standalone 1K version are slower than the ShaderToy version.
This was possible by standing on the shoulders of giants like:
Shader Minifier - http://www.pouet.net/prod.php?which=55176
jscrush - http://www.iteral.com/jscrush/ (JS1K version)
JsExe - http://www.pouet.net/prod.php?which=59298 (Standalone 1K version)
Google Closure Compiler - https://developers.google.com/closure/compiler/
It also uses several compression techniques for the JS code like using a big triangle instead of 2 triangles, function hash, etc. All these js compression techniques have been previously used on other great js demos like:
HBC-00012: Kornell Box - http://www.pouet.net/prod.php?which=61667
HBC-00013: Highway 4k - http://www.pouet.net/prod.php?which=61668
Hypersonic Mandelbulb - http://www.pouet.net/prod.php?which=61093
ANDES - http://www.pouet.net/prod.php?which=61637
More info: http://daeken.com/superpacking-js-demos
Also many bytes to fit in 1k were removed making the code more suitable to compression, e.g. There are no loops in this shader!
Done using linux btw :)
Works nice on my PC with Win/Linux/Firefox/Chrome, Mac with Firefox/Chrome, and my Nexus 5 ;)