diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/World/Block.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/World/Block.cpp b/src/World/Block.cpp index b19d67c..3c295d4 100644 --- a/src/World/Block.cpp +++ b/src/World/Block.cpp @@ -44,14 +44,11 @@ uint32_t Block::getColor() const { unsigned g = uint8_t(color >> 8); unsigned b = uint8_t(color); - uint8_t light = (blockLight > skyLight) ? blockLight : skyLight; - - float lightCoef = light/30.0f + 0.5f; float heightCoef = height/255.0f + 0.5f; - r *= lightCoef * heightCoef; - g *= lightCoef * heightCoef; - b *= lightCoef * heightCoef; + r *= heightCoef; + g *= heightCoef; + b *= heightCoef; if (t.green) { const Resource::Biome &biomeDef = Resource::BIOMES[biome]; |