Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
NoiseParams Struct Reference

#include <noise.h>

Public Member Functions

 NoiseParams ()=default
 
 NoiseParams (float offset_, float scale_, const v3f &spread_, s32 seed_, u16 octaves_, float persist_, float lacunarity_, u32 flags_=NOISE_FLAG_DEFAULTS)
 

Public Attributes

float offset = 0.0f
 
float scale = 1.0f
 
v3f spread = v3f(250, 250, 250)
 
s32 seed = 12345
 
u16 octaves = 3
 
float persist = 0.6f
 
float lacunarity = 2.0f
 
u32 flags = NOISE_FLAG_DEFAULTS
 

Constructor & Destructor Documentation

◆ NoiseParams() [1/2]

NoiseParams::NoiseParams ( )
default

◆ NoiseParams() [2/2]

NoiseParams::NoiseParams ( float offset_,
float scale_,
const v3f & spread_,
s32 seed_,
u16 octaves_,
float persist_,
float lacunarity_,
u32 flags_ = NOISE_FLAG_DEFAULTS )
inline

Member Data Documentation

◆ flags

◆ lacunarity

◆ octaves

◆ offset

◆ persist

◆ scale

◆ seed

◆ spread


The documentation for this struct was generated from the following file: