kripken/emscripten — pull request #488 by ehsan (2012-06-22 19:44:50+00:00)
Title: Fix the fog if the distance is negative

When working on fog support, I accidentally took out an abs() call. I am reintroducing it, plus a test case for catching it. I also fixed the density parameter to be a uniform and not hardcoded into the shader.