The above is an implementation of a noise algorithm, based on the research paper published by Pixar here.