C# Class SimplexNoise.Noise

Implementation of the Perlin simplex noise, an improved Perlin noise algorithm. Based loosely on SimplexNoise1234 by Stefan Gustavson
Afficher le fichier Open project: sugi-cho/UnityGraphicsPrograming

Méthodes publiques

Méthode Description
Generate ( float x ) : float

1D simplex noise

Generate ( float x, float y ) : float

2D simplex noise

Generate ( float x, float y, float z ) : float

Private Methods

Méthode Description
FastFloor ( float x ) : int
grad ( int hash, float x ) : float
grad ( int hash, float x, float y ) : float
grad ( int hash, float x, float y, float z ) : float
grad ( int hash, float x, float y, float z, float t ) : float

Method Details

Generate() public static méthode

1D simplex noise
public static Generate ( float x ) : float
x float
Résultat float

Generate() public static méthode

2D simplex noise
public static Generate ( float x, float y ) : float
x float
y float
Résultat float

Generate() public static méthode

public static Generate ( float x, float y, float z ) : float
x float
y float
z float
Résultat float