-
- Downloads
Lighting: Fix nearly all issues
The cause of a single light source seemingly being lit without spread was due to its creation in the +Y mapblock boundary layer during map generation, which was ignored as the overtop. This overtop explicitly needs to be omitted during sunlight propagation, however. To accomplish this, Mapgen::calcLighting() was split into separate functions taking separate parameters. Additionally, do not diminish light too early during spread. This fixes the output inconsistency between Map::updateLighting and Mapgen::calcLighting.
Showing
- src/mapgen.cpp 36 additions, 12 deletionssrc/mapgen.cpp
- src/mapgen.h 4 additions, 0 deletionssrc/mapgen.h
- src/mapgen_singlenode.cpp 1 addition, 2 deletionssrc/mapgen_singlenode.cpp
- src/mapgen_v5.cpp 1 addition, 2 deletionssrc/mapgen_v5.cpp
- src/mapgen_v6.cpp 2 additions, 3 deletionssrc/mapgen_v6.cpp
- src/mapgen_v7.cpp 1 addition, 2 deletionssrc/mapgen_v7.cpp
- src/script/lua_api/l_vmanip.cpp 9 additions, 9 deletionssrc/script/lua_api/l_vmanip.cpp
Loading
Please register or sign in to comment