mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
make chunk lightmap optional
This commit is contained in:
parent
64f7c19766
commit
5250c748be
12 changed files with 103 additions and 73 deletions
|
|
@ -153,8 +153,10 @@ static void integrate_chunk_client(Chunk& chunk) {
|
|||
|
||||
chunk.flags.loadedLights = false;
|
||||
chunk.flags.lighted = false;
|
||||
chunk.lightmap.clear();
|
||||
Lighting::prebuildSkyLight(chunk, *indices);
|
||||
if (chunk.lightmap) {
|
||||
chunk.lightmap->clear();
|
||||
Lighting::prebuildSkyLight(chunk, *indices);
|
||||
}
|
||||
|
||||
for (int lz = -1; lz <= 1; lz++) {
|
||||
for (int lx = -1; lx <= 1; lx++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue