diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-19 22:04:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-19 22:04:42 +0200 |
commit | e20a28a7db090dbf39bc8c90487c3d7beb84cbb8 (patch) | |
tree | d89d2ae6ab49c1e10450d47aa5b946e4e7e1551f /modules/opensimplex/simplex_noise.h | |
parent | 2306ec211cab87b2941d32e7b88e4bb7304e5e62 (diff) | |
parent | 4faa5acaa7379fa86d69cb2856edd3a990d190b1 (diff) |
Merge pull request #22260 from JFonS/add_noise_textures
Replace "persistance" with "persistence"
Diffstat (limited to 'modules/opensimplex/simplex_noise.h')
-rw-r--r-- | modules/opensimplex/simplex_noise.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/opensimplex/simplex_noise.h b/modules/opensimplex/simplex_noise.h index 59390c6172..9a48dbf809 100644 --- a/modules/opensimplex/simplex_noise.h +++ b/modules/opensimplex/simplex_noise.h @@ -44,7 +44,7 @@ class SimplexNoise : public Resource { osn_context contexts[6]; int seed; - float persistance; // Controls details, value in [0,1]. Higher increases grain, lower increases smoothness. + float persistence; // Controls details, value in [0,1]. Higher increases grain, lower increases smoothness. int octaves; // Number of noise layers float period; // Distance above which we start to see similarities. The higher, the longer "hills" will be on a terrain. float lacunarity; // Controls period change across octaves. 2 is usually a good value to address all detail levels. @@ -64,8 +64,8 @@ public: void set_period(float p_period); float get_period() const { return period; } - void set_persistance(float p_persistance); - float get_persistance() const { return persistance; } + void set_persistence(float p_persistence); + float get_persistence() const { return persistence; } void set_lacunarity(float p_lacunarity); float get_lacunarity() const { return lacunarity; } |