ashima / webgl-noise

Procedural Noise Shader Routines compatible with WebGL
MIT License
2.8k stars 302 forks source link

Mention the range somewhere #16

Closed mruegenberg closed 8 years ago

mruegenberg commented 8 years ago

Some people implement noises to be between 0 and 1, other implementations (liket the Simplex noise here?) are between -1 and 1.

It would be helpful to just mention the range somewhere, so no one is left guessing.

stegu commented 8 years ago

Yes, we should mention that. Thanks for the suggestion.

Having said that, noise with a range 0 to 1 is what interactive material editors and some shading language wrappers have been providing for convenience, but the underlying "raw" function as such has always been zero mean. ​

stegu commented 8 years ago

Mentioned it prominently on the wiki page. I think that's enough, I won't touch the source files for now.