X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flight.cpp;h=f214d6ea06615f1c5512600e66ca80e395a99b35;hb=4a6b9a6ac1b07239474bce8d3ebf772ce75e862e;hp=1e4dfcdf12051f813d6e3354e6db7debd2b98287;hpb=102c5e31fe75bc5c02ddb27afe69968ca8dedeed;p=dragonfireclient.git diff --git a/src/light.cpp b/src/light.cpp index 1e4dfcdf1..f214d6ea0 100644 --- a/src/light.cpp +++ b/src/light.cpp @@ -19,7 +19,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "light.h" - +#if 1 +// 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. @@ -41,6 +42,48 @@ u8 light_decode_table[LIGHT_MAX+1] = 200, 255, }; +#else +// Use for debugging in dark +u8 light_decode_table[LIGHT_MAX+1] = +{ +58, +64, +72, +80, +88, +98, +109, +121, +135, +150, +167, +185, +206, +229, +255, +}; +#endif + +// 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 +};*/ + // As in minecraft, a_n+1 = a_n * 0.8 // NOTE: This doesn't really work that well because this defines