Light update for map blocks
authorDániel Juhász <juhdanad@gmail.com>
Sat, 11 Mar 2017 16:07:04 +0000 (17:07 +0100)
committerEkdohibs <nathanael.courant@laposte.net>
Thu, 20 Apr 2017 03:39:14 +0000 (05:39 +0200)
commit57e5aa662851485902575c3c747437e365bf72c8
tree3e8469a85db5577140110e5d87a98514f5dd8d2f
parent6d1e6f889826a5802e17f53f99000a51b2e00066
Light update for map blocks

This is not really different from the light update of a voxel
manipulator. This update does not assume that the lighting was correct
before, therefore it is useful for correction.

Also expose this function to the Lua API for light correction, and
allow voxel manipulators not to update the light.
doc/lua_api.txt
src/map.cpp
src/map.h
src/script/lua_api/l_env.cpp
src/script/lua_api/l_env.h
src/script/lua_api/l_vmanip.cpp
src/voxelalgorithms.cpp
src/voxelalgorithms.h