VoxelGeneratorNoise
Voxel generator producing overhanging shapes using 3D noise.
Voxel generator producing overhanging shapes using 3D noise.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
VoxelGeneratorNoiseConstructor
public VoxelGeneratorNoise();Properties4
ChannelProperty
public VoxelBuffer.ChannelId Channel { get; set; }Channel into which the generator will produce voxel data. This depends on the type of meshing you need.
HeightRangeProperty
public float HeightRange { get; set; }Range of altitudes within which the shape variations will be found. The higher this range, the more overhangs there will be. Shapes will start at maximum density near the base of the shape (low probability to find air), and progressively loose density until it reaches maximum height.
HeightStartProperty
public float HeightStart { get; set; }Base of the shape. Everything below it will be filled with ground.
NoiseProperty
public FastNoiseLite Noise { get; set; }Noise used as density function. It is required for the generator to work.
Methods8
GetChannelVoxelBuffer.ChannelId
public VoxelBuffer.ChannelId GetChannel();Returns
VoxelBuffer.ChannelIdGetHeightRangefloat
public float GetHeightRange();Returns
floatGetHeightStartfloat
public float GetHeightStart();Returns
floatGetNoiseFastNoiseLite
public FastNoiseLite GetNoise();Returns
FastNoiseLiteSetChannelvoid
public void SetChannel(VoxelBuffer.ChannelId channel);| Name | Type | Default |
|---|---|---|
channel | VoxelBuffer.ChannelId | — |
SetHeightRangevoid
public void SetHeightRange(float hrange);| Name | Type | Default |
|---|---|---|
hrange | float | — |
SetHeightStartvoid
public void SetHeightStart(float hstart);| Name | Type | Default |
|---|---|---|
hstart | float | — |
SetNoisevoid
public void SetNoise(FastNoiseLite noise);| Name | Type | Default |
|---|---|---|
noise | FastNoiseLite | — |
Reckfell Engine documentationBack to top ↑