diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-04 20:48:32 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-27 19:25:25 +0300 |
commit | af29c0ade5024cb3bdaf00c3fa0d70351fd4ce28 (patch) | |
tree | aa716ad67ac03a638f6be4be98c4402d52036920 /src/light.cpp | |
parent | 4c876ac62eb6aab0a6b2ee215e02b8d181cdf1cb (diff) | |
download | minetest-af29c0ade5024cb3bdaf00c3fa0d70351fd4ce28.tar.gz minetest-af29c0ade5024cb3bdaf00c3fa0d70351fd4ce28.tar.bz2 minetest-af29c0ade5024cb3bdaf00c3fa0d70351fd4ce28.zip |
Unrelated, but anyway: tune light levels again
Diffstat (limited to 'src/light.cpp')
-rw-r--r-- | src/light.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/light.cpp b/src/light.cpp index 89bddb1c4..2a0e274ae 100644 --- a/src/light.cpp +++ b/src/light.cpp @@ -20,6 +20,30 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "light.h" #if 1 +// Middle-raised variation of 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. +u8 light_decode_table[LIGHT_MAX+1] = +{ +8, +11+2, +14+7, +18+10, +22+15, +29+20, +37+20, +47+15, +60+10, +76+7, +97+5, +123+2, +157, +200, +255, +}; +#endif + +#if 0 /* Made using this and: - adding 220 as the second last one |