Make the zone transition a bit smoother.

This commit is contained in:
Relintai 2022-03-09 19:09:06 +01:00
parent c5f1ec4384
commit b0dbbe94dd
1 changed files with 4 additions and 0 deletions

View File

@ -157,6 +157,10 @@ func gen_terra_chunk(chunk: TerrainChunk, rng : RandomNumberGenerator, raycast :
oil += float(val) * interp
chunk.set_voxel(oil, x, z, TerrainChunkDefault.DEFAULT_CHANNEL_ISOLEVEL)
if interp < 0.2:
continue
chunk.set_voxel(1, x, z, TerrainChunkDefault.DEFAULT_CHANNEL_TYPE)
if chunk.position_x == 0 && chunk.position_z == 0: