Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Mapgen: Add propagate_shadow bool to calcLighting
To terminate unwanted shadows from floatlands or realms above Also add to LuaVoxelManip calc_lighting for use in mapgen mods Remove the 2 argument calcLighting, mapgens now use the 5 argument form to specify the volumes for propagateSunlight and spreadLight In mgsinglenode replace calcLighting with setLighting and clean-up use of tabs and spaces
- Loading branch information
Showing
with
34 additions
and 44 deletions.
- +5 −3 doc/lua_api.txt
- +6 −23 src/mapgen.cpp
- +3 −6 src/mapgen.h
- +14 −10 src/mapgen_singlenode.cpp
- +1 −0 src/mapgen_singlenode.h
- +3 −1 src/mapgen_v6.cpp
- +2 −1 src/script/lua_api/l_vmanip.cpp