mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
voxalgo::clearLightAndCollectSources
This commit is contained in:
parent
56496ad5d8
commit
0f3c2f6541
5 changed files with 112 additions and 9 deletions
|
@ -21,6 +21,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#define VOXELALGORITHMS_HEADER
|
||||
|
||||
#include "voxel.h"
|
||||
#include "mapnode.h"
|
||||
|
||||
namespace voxalgo
|
||||
{
|
||||
|
@ -30,6 +31,11 @@ namespace voxalgo
|
|||
void setLight(VoxelManipulator &v, VoxelArea a, u8 light,
|
||||
INodeDefManager *ndef);
|
||||
|
||||
void clearLightAndCollectSources(VoxelManipulator &v, VoxelArea a,
|
||||
enum LightBank bank, INodeDefManager *ndef,
|
||||
core::map<v3s16, bool> & light_sources,
|
||||
core::map<v3s16, u8> & unlight_from);
|
||||
|
||||
struct SunlightPropagateResult
|
||||
{
|
||||
bool bottom_sunlight_valid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue