Auburn / FastNoiseLite

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

Range 0 - 1 #25

Closed levonravel closed 6 years ago

levonravel commented 6 years ago

How might I keep the ranges at 0 - 1, trying to utilize this with Marching Cubes. I didnt want to clamp the value 0 - 1 .

Cazadorro commented 6 years ago

if x is within -1 to 1, (x + 1.0) / 2.0 = 0 to 1.

levonravel commented 6 years ago

oh awesome love you can i upvote that.. figured it out thanks a ton.