Razaekel / noise-rs

Procedural noise generation library for Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Value noise crashes

jeffreyrosenbluth opened this issue · comments

Points with coordinates outside of [0.0, 1.0] crash.
This is due to restricting map_quintic to 0.0 - 1.0.
Looks like this bug was introduced in the Develop branch

Due to the quintic function exploding to positive or negative infinity if the value being mapped is not within the range of [0,1], the options are to either clamp the value to [0,1] or panic if the value is out of the range.

image