Optimized lighting, frustum culling, generator

- Extended CHUNK_H to 256
- Modified world generator for new world height
- Added simple 2d frustum culling
- Optimized sky lighting calculations
This commit is contained in:
MihailRis 2021-09-17 19:15:14 +03:00 • committed by GitHub
parent a11ab33115
commit 01c6c854e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 64 additions and 18 deletions

View file

@ -133,7 +133,7 @@ void Lighting::onChunkLoaded(int cx, int cy, int cz){
break;
current->lightmap->setS(x,y,z, 15);
current->modified = true;
solverS->add(gx,y+ncy*CHUNK_H,gz);
//solverS->add(gx,y+ncy*CHUNK_H,gz);
}
}
}