Contents
- Description
- Nested Class Summary
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- setSeed(int)
- setFrequency(float)
- setNoiseType(FastNoiseLite.NoiseType)
- SetRotationType3D(FastNoiseLite.RotationType3D)
- setFractalType(FastNoiseLite.FractalType)
- setFractalOctaves(int)
- SetFractalLacunarity(float)
- SetFractalGain(float)
- SetFractalWeightedStrength(float)
- SetFractalPingPongStrength(float)
- setCellularDistanceFunction(FastNoiseLite.CellularDistanceFunction)
- setCellularReturnType(FastNoiseLite.CellularReturnType)
- setCellularJitter(float)
- setDomainWarpType(FastNoiseLite.DomainWarpType)
- setDomainWarpAmp(float)
- setDomainWarpFreq(float)
- getNoise(double, double)
- getNoise(double, double, double)
- DomainWarp(FastNoiseLite.Vector2)
- DomainWarp(FastNoiseLite.Vector3)
- fastRound(double)
- pointFor(int, double, double, double, double)
- pointFor(int, double, double, double)
- pointFor(int, double, double)
- SingleCellular(int, double, double)
- DomainWarpSingle(FastNoiseLite.Vector3)
- DomainWarpFractalProgressive(FastNoiseLite.Vector2)
- DomainWarpFractalProgressive(FastNoiseLite.Vector3)
Class FastNoiseLite
java.lang.Object
com.hypixel.hytale.builtin.hytalegenerator.noise.FastNoiseLite
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionCreate new FastNoise object with default seed FastNoiseLite(int seed) Create new FastNoise object with specified seed -
Method Summary
Modifier and TypeMethodDescriptionvoidDomainWarp(FastNoiseLite.Vector2 coord) 2D warps the input position using current domain warp settings Example usage with GetNoise DomainWarp(coord) noise = GetNoise(x, y)voidDomainWarp(FastNoiseLite.Vector3 coord) 3D warps the input position using current domain warp settings Example usage with GetNoise DomainWarp(coord) noise = GetNoise(x, y, z)voidvoidvoidstatic intfastRound(double f) floatgetNoise(double x, double y) 2D noise at given position using current settings Noise output bounded between -1...1 floatgetNoise(double x, double y, double z) 3D noise at given position using current settings Noise output bounded between -1...1 doublepointFor(int seed, double jitter, double x) org.joml.Vector2dpointFor(int seed, double jitter, double x, double y) org.joml.Vector3dpointFor(int seed, double jitter, double x, double y, double z) voidsetCellularDistanceFunction(FastNoiseLite.CellularDistanceFunction cellularDistanceFunction) Sets distance function used in cellular noise calculations Default: Distance voidsetCellularJitter(float cellularJitter) Sets the maximum distance a cellular point can move from it's grid position Default: 1.0 Note: Setting this higher than 1 will cause artifacts voidsetCellularReturnType(FastNoiseLite.CellularReturnType cellularReturnType) Sets return type from cellular noise calculations Default: EuclideanSq voidsetDomainWarpAmp(float domainWarpAmp) Sets the maximum warp distance from original position when using DomainWarp(...) Default: 1.0 voidsetDomainWarpFreq(float domainWarpFreq) voidsetDomainWarpType(FastNoiseLite.DomainWarpType domainWarpType) Sets the warp algorithm when using DomainWarp(...) Default: OpenSimplex2 voidSetFractalGain(float gain) Sets octave gain for all fractal noise types Default: 0.5 voidSetFractalLacunarity(float lacunarity) Sets octave lacunarity for all fractal noise types Default: 2.0 voidsetFractalOctaves(int octaves) Sets octave count for all fractal noise types Default: 3 voidSetFractalPingPongStrength(float pingPongStrength) Sets strength of the fractal ping pong effect Default: 2.0 voidsetFractalType(FastNoiseLite.FractalType fractalType) Sets method for combining octaves in all fractal noise types Default: None Note: FractalType.DomainWarp... only affects DomainWarp(...) voidSetFractalWeightedStrength(float weightedStrength) Sets octave weighting for all none DomainWarp fratal types Default: 0.0 Note: Keep between 0...1 to maintain -1...1 output bounding voidsetFrequency(float frequency) Sets frequency for all noise types Default: 0.01 voidsetNoiseType(FastNoiseLite.NoiseType noiseType) Sets noise algorithm used for GetNoise(...) Default: OpenSimplex2 voidSetRotationType3D(FastNoiseLite.RotationType3D rotationType3D) Sets domain rotation type for 3D Noise and 3D DomainWarp. voidsetSeed(int seed) Sets seed used for all noise types Default: 1337 floatSingleCellular(int seed, double x, double y)
-
Constructor Details
-
FastNoiseLite
public FastNoiseLite()Create new FastNoise object with default seed -
FastNoiseLite
public FastNoiseLite(int seed) Create new FastNoise object with specified seed
-
-
Method Details
-
setSeed
public void setSeed(int seed) Sets seed used for all noise types Default: 1337 -
setFrequency
public void setFrequency(float frequency) Sets frequency for all noise types Default: 0.01 -
setNoiseType
Sets noise algorithm used for GetNoise(...) Default: OpenSimplex2 -
SetRotationType3D
Sets domain rotation type for 3D Noise and 3D DomainWarp. Can aid in reducing directional artifacts when sampling a 2D plane in 3D Default: None -
setFractalType
Sets method for combining octaves in all fractal noise types Default: None Note: FractalType.DomainWarp... only affects DomainWarp(...) -
setFractalOctaves
public void setFractalOctaves(int octaves) Sets octave count for all fractal noise types Default: 3 -
SetFractalLacunarity
public void SetFractalLacunarity(float lacunarity) Sets octave lacunarity for all fractal noise types Default: 2.0 -
SetFractalGain
public void SetFractalGain(float gain) Sets octave gain for all fractal noise types Default: 0.5 -
SetFractalWeightedStrength
public void SetFractalWeightedStrength(float weightedStrength) Sets octave weighting for all none DomainWarp fratal types Default: 0.0 Note: Keep between 0...1 to maintain -1...1 output bounding -
SetFractalPingPongStrength
public void SetFractalPingPongStrength(float pingPongStrength) Sets strength of the fractal ping pong effect Default: 2.0 -
setCellularDistanceFunction
public void setCellularDistanceFunction(FastNoiseLite.CellularDistanceFunction cellularDistanceFunction) Sets distance function used in cellular noise calculations Default: Distance -
setCellularReturnType
Sets return type from cellular noise calculations Default: EuclideanSq -
setCellularJitter
public void setCellularJitter(float cellularJitter) Sets the maximum distance a cellular point can move from it's grid position Default: 1.0 Note: Setting this higher than 1 will cause artifacts -
setDomainWarpType
Sets the warp algorithm when using DomainWarp(...) Default: OpenSimplex2 -
setDomainWarpAmp
public void setDomainWarpAmp(float domainWarpAmp) Sets the maximum warp distance from original position when using DomainWarp(...) Default: 1.0 -
setDomainWarpFreq
public void setDomainWarpFreq(float domainWarpFreq) -
getNoise
public float getNoise(double x, double y) 2D noise at given position using current settings Noise output bounded between -1...1 -
getNoise
public float getNoise(double x, double y, double z) 3D noise at given position using current settings Noise output bounded between -1...1 -
DomainWarp
2D warps the input position using current domain warp settings Example usage with GetNoise DomainWarp(coord) noise = GetNoise(x, y) -
DomainWarp
3D warps the input position using current domain warp settings Example usage with GetNoise DomainWarp(coord) noise = GetNoise(x, y, z) -
fastRound
public static int fastRound(double f) -
pointFor
@Nonnull public org.joml.Vector3d pointFor(int seed, double jitter, double x, double y, double z) -
pointFor
@Nonnull public org.joml.Vector2d pointFor(int seed, double jitter, double x, double y) -
pointFor
public double pointFor(int seed, double jitter, double x) -
SingleCellular
public float SingleCellular(int seed, double x, double y) -
DomainWarpSingle
-
DomainWarpFractalProgressive
-
DomainWarpFractalProgressive
-