Class FbmOpts
java.lang.Object
gaiasky.util.noise.FbmOpts
Options for fBm generators.
Mirrors the GLSL struct gln_tFBMOpts from assets/shader/lib/noise/common.glsl.
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleInitial amplitude.doubleInitial frequency.doubleFactor by which successive layers of noise increase in frequency.intNumber of layers of noise to stack.doubleFactor by which successive layers of noise decrease in amplitude.doubleExponent to apply to the generated noise in a power function.booleanConvert the fBm to Ridge Noise.Noise scale in (x, y, z).doubleSeed for PRNG generation.booleanEnable absolute value (turbulence). -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
seed
public double seedSeed for PRNG generation. -
amplitude
public double amplitudeInitial amplitude. -
persistence
public double persistenceFactor by which successive layers of noise decrease in amplitude. -
frequency
public double frequencyInitial frequency. -
lacunarity
public double lacunarityFactor by which successive layers of noise increase in frequency. -
scale
Noise scale in (x, y, z). -
power
public double powerExponent to apply to the generated noise in a power function. -
octaves
public int octavesNumber of layers of noise to stack. -
turbulence
public boolean turbulenceEnable absolute value (turbulence). -
ridge
public boolean ridgeConvert the fBm to Ridge Noise.
-
-
Constructor Details
-
FbmOpts
public FbmOpts() -
FbmOpts
public FbmOpts(double seed, double amplitude, double persistence, double frequency, double lacunarity, Vec3 scale, double power, int octaves, boolean turbulence, boolean ridge)
-