summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-02-02 17:31:55 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-02-02 17:31:55 +0100
commit8bbc75d42f46c3a3525a5898235d0e1cd5d1677a (patch)
tree349f5e52977b08b8380436643970eae37656d7a0 /src
parent22bc6db52ad7e9cb9e56a791b48ee9f4e2798c12 (diff)
downloadMinedMap-8bbc75d42f46c3a3525a5898235d0e1cd5d1677a.tar
MinedMap-8bbc75d42f46c3a3525a5898235d0e1cd5d1677a.zip
Block: don't use lighting
Diffstat (limited to 'src')
-rw-r--r--src/World/Block.cpp9
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];