perdugames / SoftNoise-GDScript-

GDScript function set generating noise (value noise, perlin noise, opensimplex(2d, 3d and 4d)...).
MIT License
108 stars 23 forks source link

Seeds not working #9

Open clabe45 opened 5 years ago

clabe45 commented 5 years ago

When I run the following code

func _ready():
    randomize()
    seed_hash = randi()

    noise = preNoiseScript.SoftNoise.new(seed_hash)
    print(seed_hash, " ", noise.simple_noise1d(0))

Here is sample output:

2855434610 -0.281791
3844575315 -0.281791
2527165008 -0.281791

It outputs the same number (-0.281791) for simple_noise2d(0, 0) too. However, results do vary with different seeds for perlin_noise2d.