diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-05-20 21:00:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 21:00:38 +0200 |
commit | 78d85de13be383b24252a38e42bec5be81721ea7 (patch) | |
tree | 6086a42784f6eeee00872469e4c2bb206ceff89a /modules/opensimplex/open_simplex_noise.h | |
parent | 28c7e28403a814617e39bd4e950302e3d4e48595 (diff) | |
parent | 97c8d9f3484de06728235e516b8885bba277efd6 (diff) |
Merge pull request #48805 from radishes/noise-image-offset
Add support for generating noise images with an offset
Diffstat (limited to 'modules/opensimplex/open_simplex_noise.h')
-rw-r--r-- | modules/opensimplex/open_simplex_noise.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/opensimplex/open_simplex_noise.h b/modules/opensimplex/open_simplex_noise.h index 847c157409..bb50c523d2 100644 --- a/modules/opensimplex/open_simplex_noise.h +++ b/modules/opensimplex/open_simplex_noise.h @@ -75,7 +75,7 @@ public: void set_lacunarity(float p_lacunarity); float get_lacunarity() const { return lacunarity; } - Ref<Image> get_image(int p_width, int p_height) const; + Ref<Image> get_image(int p_width, int p_height, const Vector2 &p_noise_offset = Vector2()) const; Ref<Image> get_seamless_image(int p_size) const; float get_noise_1d(float x) const; |