Auburn / FastNoiseLite

Fast Portable Noise Library - C# C++ C Java HLSL GLSL JavaScript Rust Go
http://auburn.github.io/FastNoiseLite/
MIT License
2.77k stars 326 forks source link

Cellular noise always produces a black texture in the c# version #110

Closed angelomorgado closed 1 year ago

angelomorgado commented 1 year ago

Hey! I'm reporting this because I tried generating the texture in the GUI version and it works flawlessly, but, when I try to replicate it in the code it generates a black texture. It works fine in other noise types, but in the cellular version it doesn't. I set up the distancefunction and the returntype correctly so I shouldn't have any problems. Is there anything I should do or is it a bug?

Auburn commented 1 year ago

The GUI uses the C# version so there is probably something different with your settings

angelomorgado commented 1 year ago

Hey! Somehow (don't ask me why) for this specific noise function I had to shift it by 1.0 (I summed the shift value to the noise values). That managed to make it appear, though I'm still confused on why.

Auburn commented 1 year ago

All the FastNoise noise type outputs are bounded -1.0, 1.0 so if you were only using 0.0, 1.0 you might have seen this issue