C# Class SimplexNoise.Noise

Implementation of the Perlin simplex noise, an improved Perlin noise algorithm. Based loosely on SimplexNoise1234 by Stefan Gustavson
ファイルを表示 Open project: sugi-cho/UnityGraphicsPrograming

Public Methods

Method 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

Method 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 method

1D simplex noise
public static Generate ( float x ) : float
x float
return float

Generate() public static method

2D simplex noise
public static Generate ( float x, float y ) : float
x float
y float
return float

Generate() public static method

public static Generate ( float x, float y, float z ) : float
x float
y float
z float
return float