mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
voxalgo::clearLightAndCollectSources
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user