Class NoiseSimplex

java.lang.Object
gaiasky.util.noise.NoiseSimplex
All Implemented Interfaces:
INoise

public class NoiseSimplex extends Object implements INoise
Java implementation of the Simplex noise algorithm. This is a port of the GLSL gln_simplex function from assets/shader/lib/noise/simplex.glsl. The algorithm produces identical noise values for the same inputs.
  • Constructor Details

    • NoiseSimplex

      public NoiseSimplex()
  • Method Details

    • evaluate

      public double evaluate(Vec3 v)
      Generates 3D Simplex Noise at the given point. Equivalent to GLSL: gln_simplex(v)
      Specified by:
      evaluate in interface INoise
      Parameters:
      v - The point at which the noise must be evaluated.
      Returns:
      The noise value.