VoxelGeneratorHeightmap
Base class for several basic height-based generators.
Base class for several basic height-based generators.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Properties5
ChannelProperty
public VoxelBuffer.ChannelId Channel { get; set; }Channel where voxels will be generated. If set to VoxelBuffer.ChannelId.ChannelSdf, voxels will be a signed distance field usable by smooth meshers. Otherwise, the value 1 will be set below ground, and the value 0 will be set above ground (blocky).
HeightRangeProperty
public float HeightRange { get; set; }Maximum distance between the lowest and highest surface points that can generate.
NOTE: due to a bug in Reckfell's documentation tool, the default value shown here is not 30.0, but 200.0. This seems to be because one of the subclasses, VoxelGeneratorWaves, has a different default value, chosen for better practical results. This property also appears in some subclasses now, despite being defined in the base class.
HeightStartProperty
public float HeightStart { get; set; }Minimum height where the surface will generate.
IsoScaleProperty
public float IsoScale { get; set; }Scale applied to the signed distance field when using a smooth terrain configuration.
OffsetProperty
public Vector2I Offset { get; set; }Offsets height generation along the X and Z axes.
Methods10
GetChannelVoxelBuffer.ChannelId
public VoxelBuffer.ChannelId GetChannel();VoxelBuffer.ChannelIdGetHeightRangefloat
public float GetHeightRange();floatGetHeightStartfloat
public float GetHeightStart();floatGetIsoScalefloat
public float GetIsoScale();floatGetOffsetVector2I
public Vector2I GetOffset();Vector2ISetChannelvoid
public void SetChannel(VoxelBuffer.ChannelId channel);| Name | Type | Default |
|---|---|---|
channel | VoxelBuffer.ChannelId | — |
SetHeightRangevoid
public void SetHeightRange(float range);| Name | Type | Default |
|---|---|---|
range | float | — |
SetHeightStartvoid
public void SetHeightStart(float start);| Name | Type | Default |
|---|---|---|
start | float | — |
SetIsoScalevoid
public void SetIsoScale(float scale);| Name | Type | Default |
|---|---|---|
scale | float | — |
SetOffsetvoid
public void SetOffset(Vector2I offset);| Name | Type | Default |
|---|---|---|
offset | Vector2I | — |