C# Class VoxelTerrain.NoiseCube

Allows retrieving interpolated values from a three-dimensional noise table.
Afficher le fichier Open project: barograf/VoxelTerrain Class Usage Examples

Méthodes publiques

Méthode Description
GetInterpolatedValue ( double x, double y, double z ) : float

Computes interpolated value of a noise using trilinear interpolation.

NoiseCube ( int width, int height, int depth ) : System

Creates a cube with specified dimensions and randomizes all values.

RandomizeValues ( ) : void

Randomizes all values in a cube.

ToTexture3D ( SlimDX.Direct3D11.Device graphicsDevice ) : ShaderResourceView
ToTexture3D ( SlimDX.Direct3D11.Device graphicsDevice, Format format ) : ShaderResourceView

Method Details

GetInterpolatedValue() public méthode

Computes interpolated value of a noise using trilinear interpolation.
public GetInterpolatedValue ( double x, double y, double z ) : float
x double Coordinate along width.
y double Coordinate along height.
z double Coordinate along depth.
Résultat float

NoiseCube() public méthode

Creates a cube with specified dimensions and randomizes all values.
public NoiseCube ( int width, int height, int depth ) : System
width int Width of a cube.
height int Height of a cube.
depth int Depth of a cube.
Résultat System

RandomizeValues() public méthode

Randomizes all values in a cube.
public RandomizeValues ( ) : void
Résultat void

ToTexture3D() public méthode

public ToTexture3D ( SlimDX.Direct3D11.Device graphicsDevice ) : ShaderResourceView
graphicsDevice SlimDX.Direct3D11.Device
Résultat ShaderResourceView

ToTexture3D() public méthode

public ToTexture3D ( SlimDX.Direct3D11.Device graphicsDevice, Format format ) : ShaderResourceView
graphicsDevice SlimDX.Direct3D11.Device
format Format
Résultat ShaderResourceView