summaryrefslogtreecommitdiff
path: root/src/light.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2010-12-19 16:51:45 +0200
committerPerttu Ahola <celeron55@gmail.com>2010-12-19 16:51:45 +0200
commit0ca9423b8b2cf7bd1435fb09eba7a9f50d444864 (patch)
treeea49a7bae71b4e89f51797356fd0d34c35497e74 /src/light.cpp
parent240499dc2c766c9d022e6df71e770a116a2c95de (diff)
downloadminetest-0ca9423b8b2cf7bd1435fb09eba7a9f50d444864.tar.gz
minetest-0ca9423b8b2cf7bd1435fb09eba7a9f50d444864.tar.bz2
minetest-0ca9423b8b2cf7bd1435fb09eba7a9f50d444864.zip
day/night working client side
Diffstat (limited to 'src/light.cpp')
-rw-r--r--src/light.cpp59
1 files changed, 51 insertions, 8 deletions
diff --git a/src/light.cpp b/src/light.cpp
index 73ca297c7..fec800874 100644
--- a/src/light.cpp
+++ b/src/light.cpp
@@ -19,15 +19,21 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "light.h"
-// LIGHT_MAX is 14, 0-14 is 15 values
-/*u8 light_decode_table[LIGHT_MAX+1] =
+/*u32 daynight_cache_ratios[DAYNIGHT_CACHE_COUNT] =
+{
+ 1000,
+ 600,
+ 300
+};*/
+
+u8 light_decode_table[LIGHT_MAX+1] =
{
0,
-9,
-12,
+6,
+8,
+11,
14,
-16,
-20,
+19,
26,
34,
45,
@@ -37,8 +43,26 @@ with this program; if not, write to the Free Software Foundation, Inc.,
143,
191,
255,
+};
+/*u8 light_decode_table[LIGHT_MAX+1] =
+{
+0,
+3,
+6,
+10,
+18,
+25,
+35,
+50,
+75,
+95,
+120,
+150,
+185,
+215,
+255,
};*/
-u8 light_decode_table[LIGHT_MAX+1] =
+/*u8 light_decode_table[LIGHT_MAX+1] =
{
0,
5,
@@ -55,7 +79,26 @@ u8 light_decode_table[LIGHT_MAX+1] =
185,
215,
255,
-};
+};*/
+// LIGHT_MAX is 14, 0-14 is 15 values
+/*u8 light_decode_table[LIGHT_MAX+1] =
+{
+0,
+9,
+12,
+14,
+16,
+20,
+26,
+34,
+45,
+61,
+81,
+108,
+143,
+191,
+255,
+};*/
#if 0
/*