mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add AreaMap2D
This commit is contained in:
parent
f70ac5c190
commit
c3569b5dd4
11 changed files with 282 additions and 179 deletions
|
|
@ -23,8 +23,9 @@ Lighting::Lighting(const Content* content, Chunks* chunks)
|
|||
Lighting::~Lighting() = default;
|
||||
|
||||
void Lighting::clear(){
|
||||
for (size_t index = 0; index < chunks->volume; index++){
|
||||
auto chunk = chunks->chunks[index];
|
||||
const auto& chunks = this->chunks->getChunks();
|
||||
for (size_t index = 0; index < chunks.size(); index++){
|
||||
auto chunk = chunks[index];
|
||||
if (chunk == nullptr)
|
||||
continue;
|
||||
Lightmap& lightmap = chunk->lightmap;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue