0ebbb897dc
Returning Block::AIR when chunk is not yet generated (CHUNK_STATE_GENERATED set to false) is also a way to avoid thread-unsafe concurrent access to the IntervalMaps data structure, since CHUNK_STATE_GENERATED is set to false before generating the Chunk and set again to true after generation is complete |
||
---|---|---|
include | ||
lib | ||
shaders | ||
src | ||
textures | ||
.gitignore | ||
CMakeLists.txt | ||
README.md | ||
build-and-run.sh |
README.md
Port of https://git.emamaker/voxel-test-intervalmaps to C++ and OpenGL.
Credits
CMake template based on https://github.com/kigster/cmake-project-template by Konstantin Gredeskoul under MIT License
Rest of credits is in respective source files (OpenSimplexNoise, glad, glm, stb_image)