zachsaw/RenderScripts — pull request #16 by Shiandow (2014-11-13 10:18:28+00:00)
Title: Improve numerical stability, preserve alpha

The 'pow' function doesn't work on negative values, so you should call saturate first.
Also made it preserve the alpha channel, can't think of a good reason why you shouldn't.