- All Implemented Interfaces:
Serializable
,Comparable<LatticeOrientation>
A lattice orientation for use with Simplex-type noise.
-
Enum Constant Summary
Enum ConstantDescriptionGenerates the simplex-style coherent noise with the classic lattice orientation.Generates simplex-style noise with Z pointing up the main diagonal on the noise lattice.Generates simplex-style noise with Y pointing up the main diagonal on the noise lattice. -
Method Summary
Modifier and TypeMethodDescriptionstatic LatticeOrientation
Returns the enum constant of this type with the specified name.static LatticeOrientation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CLASSIC
Generates the simplex-style coherent noise with the classic lattice orientation.Might be better for texturing 3D models, but less good for generating terrain which has a vertical direction that works differently than the two horizontal directions. There may be subtle diagonal artifacts, similar to classic Simplex.
-
XZ_BEFORE_Y
Generates simplex-style noise with Y pointing up the main diagonal on the noise lattice.If used properly, this can produce better results than CLASSIC, when generating 3D worlds with vertical direction that works differently than the two horizontal directions.
See the following recommended usage patterns:
- If Y is vertical and X/Z are horizontal, call
noise(x, Y, z)
- If Z is vertical and X/Y are horizontal, call
noise(x, Z, y)
or use modeXY_BEFORE_Z
. - If T is time and X/Y or X/Z are horizontal, call
noise(x, T, y)
ornoise(x, T, z)
, or use modeXY_BEFORE_Z
. - If only two coordinates are needed for a 2D noise plane, call
noise(x, 0, y)
ornoise(x, 0, z)
, or use modeXY_BEFORE_Z
- If Y is vertical and X/Z are horizontal, call
-
XY_BEFORE_Z
Generates simplex-style noise with Z pointing up the main diagonal on the noise lattice.If used properly, this can produce better results than CLASSIC, when generating 3D worlds with vertical direction that works differently than the two horizontal directions.
See the following recommended usage patterns:
- If Y is vertical and X/Z are horizontal, call
noise(x, z, Y)
or use modeXZ_BEFORE_Y
. - If Z is vertical and X/Y are horizontal, call
noise(x, y, Z)
- If T is time and X/Y or X/Z are horizontal, call
noise(x, y, T)
ornoise(x, z, T)
, or use modeXZ_BEFORE_Y
. - If only two coordinates are needed for a 2D noise plane, call
noise(x, y, 0)
ornoise(x, z, 0)
, or use modeXZ_BEFORE_Y
.
- If Y is vertical and X/Z are horizontal, call
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-