From 8bbc75d42f46c3a3525a5898235d0e1cd5d1677a Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 2 Feb 2015 17:31:55 +0100 Subject: Block: don't use lighting --- src/World/Block.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/World') 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]; -- cgit v1.2.3