summaryrefslogtreecommitdiff
path: root/src/light.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-18 22:25:25 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-18 22:25:25 +0200
commit4c2b9ed516e3109d5c74a37c9479a516beae4f50 (patch)
treedc0666a6dbc711f26fc89cfad416cdd3ca23f1e7 /src/light.cpp
parent74f4a0ece8457d6519f7e5ae9fab20aea6ff8cf3 (diff)
downloadminetest-4c2b9ed516e3109d5c74a37c9479a516beae4f50.tar.gz
minetest-4c2b9ed516e3109d5c74a37c9479a516beae4f50.tar.bz2
minetest-4c2b9ed516e3109d5c74a37c9479a516beae4f50.zip
random code cleaning, shouldn't affect anything
Diffstat (limited to 'src/light.cpp')
-rw-r--r--src/light.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/light.cpp b/src/light.cpp
index 1e4dfcdf1..5dade2e16 100644
--- a/src/light.cpp
+++ b/src/light.cpp
@@ -19,7 +19,28 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "light.h"
+// This is reasonable with classic lighting with a light source
+/*u8 light_decode_table[LIGHT_MAX+1] =
+{
+2,
+3,
+4,
+6,
+9,
+13,
+18,
+25,
+32,
+35,
+45,
+57,
+69,
+79,
+255
+};*/
+
+// This is good
// a_n+1 = a_n * 0.786
// Length of LIGHT_MAX+1 means LIGHT_MAX is the last value.
// LIGHT_SUN is read as LIGHT_MAX from here.