mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
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:
parent
a11ab33115
commit
01c6c854e1
5 changed files with 64 additions and 18 deletions
|
|
@ -321,7 +321,7 @@ bool Chunks::loadVisible(WorldFiles* worldFiles){
|
|||
int nearX = 0;
|
||||
int nearY = 0;
|
||||
int nearZ = 0;
|
||||
int minDistance = 1000000000;
|
||||
int minDistance = (w/2)*(w/2);
|
||||
for (unsigned int y = 0; y < h; y++){
|
||||
for (unsigned int z = 1; z < d-1; z++){
|
||||
for (unsigned int x = 1; x < w-1; x++){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue