summaryrefslogtreecommitdiff
path: root/src/noise.h
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2014-11-12 21:11:40 +0100
committerCraig Robbins <kde.psych@gmail.com>2014-11-13 23:06:38 +1000
commit874109c5201c3deed49bc9eb98352e816c271d50 (patch)
treeb4cf37950677c6d399f292fc5704938f60364c6a /src/noise.h
parentb57478b93bb1f3fdcd16ffa2d67f2bd37cdbc1c3 (diff)
downloadminetest-874109c5201c3deed49bc9eb98352e816c271d50.tar.gz
minetest-874109c5201c3deed49bc9eb98352e816c271d50.tar.bz2
minetest-874109c5201c3deed49bc9eb98352e816c271d50.zip
Add option 'eased' to NoiseParams
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
Diffstat (limited to 'src/noise.h')
-rw-r--r--src/noise.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/noise.h b/src/noise.h
index 00d3612af..398052837 100644
--- a/src/noise.h
+++ b/src/noise.h
@@ -73,11 +73,12 @@ struct NoiseParams {
int seed;
int octaves;
float persist;
+ bool eased;
NoiseParams() {}
NoiseParams(float offset_, float scale_, v3f spread_,
- int seed_, int octaves_, float persist_)
+ int seed_, int octaves_, float persist_, bool eased_=false)
{
offset = offset_;
scale = scale_;
@@ -85,6 +86,7 @@ struct NoiseParams {
seed = seed_;
octaves = octaves_;
persist = persist_;
+ eased = eased_;
}
};