mirror of
https://github.com/Relintai/broken_seals.git
synced 2025-01-22 02:17:18 +01:00
The test/simple biome now gets generated by summing 2 noises. I made the main elevation noise scaled out more.
This commit is contained in:
parent
1697167975
commit
41fba2bec7
@ -73,14 +73,19 @@ func gen_terra_chunk(chunk: TerraChunk) -> void:
|
||||
s.set_noise_type(FastNoise.TYPE_SIMPLEX)
|
||||
s.set_seed(current_seed)
|
||||
|
||||
var sdet : FastNoise = FastNoise.new()
|
||||
sdet.set_noise_type(FastNoise.TYPE_SIMPLEX)
|
||||
sdet.set_seed(current_seed)
|
||||
|
||||
for x in range(-chunk.margin_start, chunk.size_x + chunk.margin_end):
|
||||
for z in range(-chunk.margin_start, chunk.size_x + chunk.margin_end):
|
||||
var vx : int = x + (chunk.position_x * chunk.size_x)
|
||||
var vz : int = z + (chunk.position_z * chunk.size_z)
|
||||
|
||||
var val : float = (s.get_noise_2d(vx * 0.4, vz * 0.4) + 2)
|
||||
var val : float = (s.get_noise_2d(vx * 0.05, vz * 0.05) + 2)
|
||||
val *= val
|
||||
val *= 20.0
|
||||
val += abs(sdet.get_noise_2d(vx * 0.8, vz * 0.8)) * 20
|
||||
|
||||
chunk.set_voxel(val, x, z, TerraChunkDefault.DEFAULT_CHANNEL_ISOLEVEL)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user