aboutsummaryrefslogtreecommitdiff
path: root/src/noise.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/noise.h')
-rw-r--r--src/noise.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/noise.h b/src/noise.h
index 0bf1a2f13..074bedb92 100644
--- a/src/noise.h
+++ b/src/noise.h
@@ -68,6 +68,19 @@ struct NoiseParams {
int seed;
int octaves;
float persist;
+
+ NoiseParams() {}
+
+ NoiseParams(float offset_, float scale_, v3f spread_,
+ int seed_, int octaves_, float persist_)
+ {
+ offset = offset_;
+ scale = scale_;
+ spread = spread_;
+ seed = seed_;
+ octaves = octaves_;
+ persist = persist_;
+ }
};