Improved lighting
This commit rewrites the procedure that is responsible for light updating. this commit -provides iterative solutions for unlighting and light spreading -introduces a new priority queue-like container for the iteration -creates per-node MapBlock caching to reduce retrieving MapBlocks from the map -calculates with map block positions and in-block relative node coordinates -skips light updating if it is not necessary since the node's new light will be the same as its old light was
Showing
- src/map.cpp 15 additions, 426 deletionssrc/map.cpp
- src/map.h 1 addition, 15 deletionssrc/map.h
- src/mapnode.cpp 14 additions, 2 deletionssrc/mapnode.cpp
- src/mapnode.h 9 additions, 0 deletionssrc/mapnode.h
- src/voxelalgorithms.cpp 584 additions, 0 deletionssrc/voxelalgorithms.cpp
- src/voxelalgorithms.h 20 additions, 0 deletionssrc/voxelalgorithms.h
Loading
Please register or sign in to comment