C# 클래스 VoxelTerrain.CPUGenerator

상속: IGenerate
파일 보기 프로젝트 열기: barograf/VoxelTerrain 1 사용 예제들

공개 메소드들

메소드 설명
CPUGenerator ( SlimDX.Direct3D11.Device graphicsDevice, VoxelMeshContainer container ) : System
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.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

비공개 메소드들

메소드 설명
ComputeAmbient ( Voxel voxels ) : void

Computes ambient color for each voxel.

ComputeNormal ( Voxel voxels ) : void

Computes normal vectors based on weight of each voxel.

ComputeTriangles ( Voxel voxels, int levelOfDetail ) : List

Computes triangle positions and normal vectors based on array of voxels.

CreateGeometryBuffer ( List triangles ) : void

Creates shader vertex buffer based on computed triangles.

메소드 상세

CPUGenerator() 공개 메소드

public CPUGenerator ( SlimDX.Direct3D11.Device graphicsDevice, VoxelMeshContainer container ) : System
graphicsDevice SlimDX.Direct3D11.Device
container VoxelMeshContainer
리턴 System

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GenerateFromFormula() 공개 메소드

Generates mesh using mathematical functions.
public GenerateFromFormula ( int width, int height, int depth ) : void
width int Mesh width.
height int Mesh height.
depth int Mesh depth.
리턴 void

GenerateFromNoiseCube() 공개 메소드

Generates mesh using some random values interpolated with trilinear interpolation.
public GenerateFromNoiseCube ( int width, int height, int depth ) : void
width int Mesh widht.
height int Mesh height.
depth int Mesh depth.
리턴 void

GenerateFromNoiseCubeWithWarp() 공개 메소드

Generates mesh using some random values interpolated with trilinear interpolation. Uses coordinates transformed with warp values.
public GenerateFromNoiseCubeWithWarp ( int width, int height, int depth ) : void
width int Mesh widht.
height int Mesh height.
depth int Mesh depth.
리턴 void