Class FbmOpts

java.lang.Object
gaiasky.util.noise.FbmOpts

public class FbmOpts extends Object
Options for fBm generators. Mirrors the GLSL struct gln_tFBMOpts from assets/shader/lib/noise/common.glsl.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
    Initial amplitude.
    double
    Initial frequency.
    double
    Factor by which successive layers of noise increase in frequency.
    int
    Number of layers of noise to stack.
    double
    Factor by which successive layers of noise decrease in amplitude.
    double
    Exponent to apply to the generated noise in a power function.
    boolean
    Convert the fBm to Ridge Noise.
    Noise scale in (x, y, z).
    double
    Seed for PRNG generation.
    boolean
    Enable absolute value (turbulence).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    FbmOpts(double seed, double amplitude, double persistence, double frequency, double lacunarity, Vec3 scale, double power, int octaves, boolean turbulence, boolean ridge)
     
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • seed

      public double seed
      Seed for PRNG generation.
    • amplitude

      public double amplitude
      Initial amplitude.
    • persistence

      public double persistence
      Factor by which successive layers of noise decrease in amplitude.
    • frequency

      public double frequency
      Initial frequency.
    • lacunarity

      public double lacunarity
      Factor by which successive layers of noise increase in frequency.
    • scale

      public Vec3 scale
      Noise scale in (x, y, z).
    • power

      public double power
      Exponent to apply to the generated noise in a power function.
    • octaves

      public int octaves
      Number of layers of noise to stack.
    • turbulence

      public boolean turbulence
      Enable absolute value (turbulence).
    • ridge

      public boolean ridge
      Convert 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)