1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add option 'eased' to NoiseParams

Signed-off-by: Craig Robbins <kde.psych@gmail.com>
This commit is contained in:
SmallJoker 2014-11-12 21:11:40 +01:00 committed by Craig Robbins
parent b57478b93b
commit 874109c520
4 changed files with 19 additions and 3 deletions

View file

@ -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_;
}
};