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:
parent
b57478b93b
commit
874109c520
4 changed files with 19 additions and 3 deletions
|
@ -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_;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue