diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-02 17:31:55 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-02-02 17:31:55 +0100 |
commit | 8bbc75d42f46c3a3525a5898235d0e1cd5d1677a (patch) | |
tree | 349f5e52977b08b8380436643970eae37656d7a0 | |
parent | 22bc6db52ad7e9cb9e56a791b48ee9f4e2798c12 (diff) | |
download | MinedMap-8bbc75d42f46c3a3525a5898235d0e1cd5d1677a.tar MinedMap-8bbc75d42f46c3a3525a5898235d0e1cd5d1677a.zip |
Block: don't use lighting
-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]; |