I’ve used this simplex noise function lots of times, and have never run into problems with its output. It’s always within the [-1, 1]
range. The problem could be occurring in whatever data tDiffuse
has, or inside fbm()
or map()
I can’t just read where the problem is taking place without a live example. Also, there are a lot of uniforms and constants that are being declared out of view from the code you provided. Maybe you can give us a live http://jsfiddle.net/ link to better help you.
3 Likes