LWJGL 3 OpenGL - Voxel Game Chunks and Voxel Editing (Part 1)
Автор: Kai Burjack
Загружено: 2020-11-05
Просмотров: 3455
Описание:
Simple OpenGL 3.3 voxel game with construction/destruction, greedy meshing, simple ambient occlusion and chunks.
No flood fill lighting at the moment.
Uses either multi draw indirect or OpenGL 3.2 glMultiDrawElementsBaseVertex to draw the whole scene with a single draw call, managing all vertex attribute data and index data in single large contiguous buffer objects with custom memory management (allocation/deallocation of buffer and index regions for rebuilt chunks). Each meshed voxel side consists of 4 vertices and 5 indexes (4 indices for a triangle strip + 1 primitive restart token).
The scene shows 45x45 chunks with each chunk consisting of 32x256x32 voxels.
Sources:
Java: https://github.com/LWJGL/lwjgl3-demos...
GLSL: https://github.com/LWJGL/lwjgl3-demos...
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: