Page 1 of 1

[Genhis][2.0.69] random_penalty noise function has inconsistent behavior

Posted: Tue Sep 30, 2025 10:12 pm
by Hanodest
For demonstration, two noise expressions:

Code: Select all

random_penalty(0, 0, 1, map_seed, 2)

Code: Select all

random_penalty(x-x, 0, 1, map_seed, 2)
Theoretically, they are supposed to be identical. In practice, the former evaluates to some seed-dependent constant everywhere, and the latter - generates different random values for different tiles, seemingly with a period of 1 chunk. Visualization from noise-tools for the latter:
random_penalty.png
random_penalty.png (23.32 KiB) Viewed 157 times