Skip to content

Commit baf6e0b

Browse files
author
Pierre Surer
committed
Changed see properties
1 parent fc33599 commit baf6e0b

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

OpenGL/OpenGL/src/terrain/Generator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ std::unique_ptr<Chunk> Generator::generate(ivec3 cpos) const {
3737
}
3838

3939
Block::unique_ptr_t Generator::computeSurfaceBlock(ivec3 const& pos, Biome const& biome, int const& blockHeight) const {
40+
if(pos.y<-5.0f)return Block::create_static<Sandstone_Block>();
4041
if (abs(pos.y) < 3.f && biome.type == BiomeType::SEA) return Block::create_static<Sand_Block>();
4142
if (biome.type == BiomeType::MOUNTAINS && abs(abs(pos.y) < 2.f))return Block::create_static<Ice_Block>();
4243
if (abs(pos.y) < 2.f) return Block::create_static<Sand_Block>();

OpenGL/OpenGL/src/terrain/biomes/BiomeMap.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ BiomeMap::BiomeMap()
7878
{0.5f, 0.050f},
7979
{0.5f, 0.100f},
8080
};
81-
biomeSea.elevation = -10;
81+
biomeSea.elevation = -40;
8282
biomeSea.tallgrass = 0;
8383

8484
biomeToundra = biomePlains;

0 commit comments

Comments
 (0)