mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Add option 'eased' to NoiseParams
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
This commit is contained in:
committed by
Craig Robbins
parent
b57478b93b
commit
874109c520
@@ -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_;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user