[WIP] Using chunks to show a voxel world
This is an extension of the simple voxel mesher found in https://github.com/raylib-extras/examples-cpp/tree/main/voxel_mesher
The app generates a simple world using a perlin noise map and meshes the voxels as needed in threads, and then uploads them to the GPU in the main thread.
All the code for the voxel world is part of the voxel_lib library. It contains the voxel data, world chunks and meshing system, as well as threading systems to generate and mesh chunks async from the main thread.
This is a C++ version of rlights.h that supports attenuation and spotlights
- Threadpools
- Collision
- LOD
- Dirty Chunks
- Serialization
- Floating Origin
- Water
- Better World Generation
- Trees
- Entities
Copyright (c) 2020-2024 Jeffery Myers
This software is provided "as-is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
-
The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in222rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr2221Z a product, an acknowledgment in the product documentation would be appreciated but is not required.
-
Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
-
This notice may not be removed or altered from any source distribution.