Skip to content

Commit

Permalink
Changed see properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre Surer committed Jun 11, 2021
1 parent fc33599 commit baf6e0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions OpenGL/OpenGL/src/terrain/Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ std::unique_ptr<Chunk> Generator::generate(ivec3 cpos) const {
}

Block::unique_ptr_t Generator::computeSurfaceBlock(ivec3 const& pos, Biome const& biome, int const& blockHeight) const {
if(pos.y<-5.0f)return Block::create_static<Sandstone_Block>();
if (abs(pos.y) < 3.f && biome.type == BiomeType::SEA) return Block::create_static<Sand_Block>();
if (biome.type == BiomeType::MOUNTAINS && abs(abs(pos.y) < 2.f))return Block::create_static<Ice_Block>();
if (abs(pos.y) < 2.f) return Block::create_static<Sand_Block>();
Expand Down
2 changes: 1 addition & 1 deletion OpenGL/OpenGL/src/terrain/biomes/BiomeMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ BiomeMap::BiomeMap()
{0.5f, 0.050f},
{0.5f, 0.100f},
};
biomeSea.elevation = -10;
biomeSea.elevation = -40;
biomeSea.tallgrass = 0;

biomeToundra = biomePlains;
Expand Down

0 comments on commit baf6e0b

Please sign in to comment.