Method | Description | |
---|---|---|
CPUGenerator ( SlimDX.Direct3D11.Device graphicsDevice, |
||
Dispose ( ) : void | ||
GenerateFromFormula ( int width, int height, int depth ) : void |
Generates mesh using mathematical functions.
|
|
GenerateFromNoiseCube ( int width, int height, int depth ) : void |
Generates mesh using some random values interpolated with trilinear interpolation.
|
|
GenerateFromNoiseCubeWithWarp ( int width, int height, int depth ) : void |
Generates mesh using some random values interpolated with trilinear interpolation. Uses coordinates transformed with warp values.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Method | Description | |
---|---|---|
ComputeAmbient ( |
Computes ambient color for each voxel.
|
|
ComputeNormal ( |
Computes normal vectors based on weight of each voxel.
|
|
ComputeTriangles ( |
Computes triangle positions and normal vectors based on array of voxels.
|
|
CreateGeometryBuffer ( List |
Creates shader vertex buffer based on computed triangles.
|
public CPUGenerator ( SlimDX.Direct3D11.Device graphicsDevice, |
||
graphicsDevice | SlimDX.Direct3D11.Device | |
container | ||
return | System |
public GenerateFromFormula ( int width, int height, int depth ) : void | ||
width | int | Mesh width. |
height | int | Mesh height. |
depth | int | Mesh depth. |
return | void |
public GenerateFromNoiseCube ( int width, int height, int depth ) : void | ||
width | int | Mesh widht. |
height | int | Mesh height. |
depth | int | Mesh depth. |
return | void |
public GenerateFromNoiseCubeWithWarp ( int width, int height, int depth ) : void | ||
width | int | Mesh widht. |
height | int | Mesh height. |
depth | int | Mesh depth. |
return | void |