C# Class Perlin, UnityGPUMarchingCubes

Show file Open project: kristofe/UnityGPUMarchingCubes Class Usage Examples

Public Methods

Method Description
Fractal ( float posX, float posY, int octaves ) : float
Marble ( float posX, float posY, float posZ, int octaves ) : float
Marble ( float posX, float posY, int octaves ) : float
Noise ( float x, float y ) : float
Noise ( float x, float y, float z ) : float
NoiseNormalized ( float x, float y ) : float
Turbulence ( float posX, float posY, float posZ, int octaves ) : float
Turbulence ( float posX, float posY, int octaves ) : float

Private Methods

Method Description
fade ( float t ) : float
grad ( int hash, float x, float y, float z ) : float
grad2 ( int hash, float x, float y ) : float
lerp ( float t, float a, float b ) : float

Method Details

Fractal() public static method

public static Fractal ( float posX, float posY, int octaves ) : float
posX float
posY float
octaves int
return float

Marble() public static method

public static Marble ( float posX, float posY, float posZ, int octaves ) : float
posX float
posY float
posZ float
octaves int
return float

Marble() public static method

public static Marble ( float posX, float posY, int octaves ) : float
posX float
posY float
octaves int
return float

Noise() public static method

public static Noise ( float x, float y ) : float
x float
y float
return float

Noise() public static method

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

NoiseNormalized() public static method

public static NoiseNormalized ( float x, float y ) : float
x float
y float
return float

Turbulence() public static method

public static Turbulence ( float posX, float posY, float posZ, int octaves ) : float
posX float
posY float
posZ float
octaves int
return float

Turbulence() public static method

public static Turbulence ( float posX, float posY, int octaves ) : float
posX float
posY float
octaves int
return float