C# 클래스 TerrainGeneration.TerrainGen

파일 보기 프로젝트 열기: geofftnz/TestBench1 1 사용 예제들

공개 메소드들

메소드 설명
AddDiscontinuousNoise ( int octaves, float scale, float amplitude, float threshold ) : void
AddLooseMaterial ( float amount ) : void
AddMultipliedSimplexNoise ( int octaves1, float scale1, float>.Func transform1, float offset1, float mul1, int octaves2, float scale2, float>.Func transform2, float offset2, float mul2, float>.Func postTransform, float amplitude ) : void

One set of noise multiplied by another.

AddSimplexNoise ( int octaves, float scale, float amplitude ) : void
AddSimplexNoise ( int octaves, float scale, float amplitude, float>.Func transform, float>.Func postTransform ) : void
AddSimplexNoiseToLoose ( int octaves, float scale, float amplitude ) : void
AddSimplexPowNoise ( int octaves, float scale, float amplitude, float power, float>.Func postTransform ) : void
ClampToGround ( Vector3 pos ) : Vector3
Clear ( float height ) : void
Collapse ( float _threshold, float amount, float looseThreshold, int numIterations ) : void

Similar to Slump(), but works on hard material instead of loose, and only when amount of loose coverage is below a certain threshold

CollapseFrom ( int cx, int cy, float amount ) : void

Collapses loose material away from the specified point.

CollapseTo ( int cx, int cy, float amount ) : void
HeightAt ( float x, float y ) : float
InitTerrain1 ( ) : void
Load ( string filename ) : void
ModifyTerrain ( ) : void
RunWater2 ( int CellsPerRun ) : void
Save ( string filename ) : void
SetBaseLevel ( ) : void
Slump ( float _threshold, float amount, int numIterations ) : void

Slumps the terrain by looking at difference between cell and adjacent cells

TerrainGen ( int width, int height ) : System

비공개 메소드들

메소드 설명
CellNormal ( int cx, int cy ) : Vector3
ClearTempDiffMap ( ) : void
DecayWater ( float MovingWaterDecay, float WaterErosionDecay, float CarryingDecay ) : void
FallVector ( int cx, int cy ) : Vector3

메소드 상세

AddDiscontinuousNoise() 공개 메소드

public AddDiscontinuousNoise ( int octaves, float scale, float amplitude, float threshold ) : void
octaves int
scale float
amplitude float
threshold float
리턴 void

AddLooseMaterial() 공개 메소드

public AddLooseMaterial ( float amount ) : void
amount float
리턴 void

AddMultipliedSimplexNoise() 공개 메소드

One set of noise multiplied by another.
public AddMultipliedSimplexNoise ( int octaves1, float scale1, float>.Func transform1, float offset1, float mul1, int octaves2, float scale2, float>.Func transform2, float offset2, float mul2, float>.Func postTransform, float amplitude ) : void
octaves1 int
scale1 float
transform1 float>.Func
offset1 float
mul1 float
octaves2 int
scale2 float
transform2 float>.Func
offset2 float
mul2 float
postTransform float>.Func
amplitude float
리턴 void

AddSimplexNoise() 공개 메소드

public AddSimplexNoise ( int octaves, float scale, float amplitude ) : void
octaves int
scale float
amplitude float
리턴 void

AddSimplexNoise() 공개 메소드

public AddSimplexNoise ( int octaves, float scale, float amplitude, float>.Func transform, float>.Func postTransform ) : void
octaves int
scale float
amplitude float
transform float>.Func
postTransform float>.Func
리턴 void

AddSimplexNoiseToLoose() 공개 메소드

public AddSimplexNoiseToLoose ( int octaves, float scale, float amplitude ) : void
octaves int
scale float
amplitude float
리턴 void

AddSimplexPowNoise() 공개 메소드

public AddSimplexPowNoise ( int octaves, float scale, float amplitude, float power, float>.Func postTransform ) : void
octaves int
scale float
amplitude float
power float
postTransform float>.Func
리턴 void

ClampToGround() 공개 메소드

public ClampToGround ( Vector3 pos ) : Vector3
pos Vector3
리턴 Vector3

Clear() 공개 메소드

public Clear ( float height ) : void
height float
리턴 void

Collapse() 공개 메소드

Similar to Slump(), but works on hard material instead of loose, and only when amount of loose coverage is below a certain threshold
public Collapse ( float _threshold, float amount, float looseThreshold, int numIterations ) : void
_threshold float
amount float
looseThreshold float
numIterations int
리턴 void

CollapseFrom() 공개 메소드

Collapses loose material away from the specified point.
public CollapseFrom ( int cx, int cy, float amount ) : void
cx int
cy int
amount float
리턴 void

CollapseTo() 공개 메소드

public CollapseTo ( int cx, int cy, float amount ) : void
cx int
cy int
amount float
리턴 void

HeightAt() 공개 메소드

public HeightAt ( float x, float y ) : float
x float
y float
리턴 float

InitTerrain1() 공개 메소드

public InitTerrain1 ( ) : void
리턴 void

Load() 공개 메소드

public Load ( string filename ) : void
filename string
리턴 void

ModifyTerrain() 공개 메소드

public ModifyTerrain ( ) : void
리턴 void

RunWater2() 공개 메소드

public RunWater2 ( int CellsPerRun ) : void
CellsPerRun int
리턴 void

Save() 공개 메소드

public Save ( string filename ) : void
filename string
리턴 void

SetBaseLevel() 공개 메소드

public SetBaseLevel ( ) : void
리턴 void

Slump() 공개 메소드

Slumps the terrain by looking at difference between cell and adjacent cells
public Slump ( float _threshold, float amount, int numIterations ) : void
_threshold float
amount float amount of material to move (proportional to difference)
numIterations int
리턴 void

TerrainGen() 공개 메소드

public TerrainGen ( int width, int height ) : System
width int
height int
리턴 System