sashakoshka/m4kc

Perlin noise function breaks in negatives

Closed this issue · 1 comments

Perlin noise function generates jittery and exaggerated terrain in negative coordinate chunks on the x and z axis.

Screenshot from 2021-05-13 14-23-18

Fixed it by offsetting the perlin noise function a lot, and making it use doubles internally instead of floats. This will produce farlands at very far distances but farlands are cool and I wouldn't have it any other way.