This is a simple voxel renderer implemented in C++, utilizing OpenGL for drawing the scene. It features a separate thread for chunk building and rendering, a basic wave shader, random terrain generation using Perlin noise and a bit of point lighting.
- CMake: Make sure you have CMake installed to build the project.
- GLFW: This project utilizes GLFW for window creation and OpenGL context management.
- GLM: GLM (OpenGL Mathematics) is used for mathematics operations in OpenGL applications.
Make sure to install these dependancies as the program cannot be built without them
Arch Linux :
sudo pacman -S glfw glm cmake gcc
- Clone this repository to your local machine.
git clone https://github.com/LiteApplication/OpenGL-experiments
- Navigate to the cloned repository directory.
cd OpenGL-experiments
- Create a build directory and navigate into it.
mkdir build
cd build
- Run CMake to generate build files.
cmake ..
- Build the project using your preferred build system (Makefiles, Visual Studio solution, etc.).
cmake --build .
- After successful compilation, the executable will be generated in the
build
directory.
-
Run the executable generated after building the project.
./TestGL
-
Interact with the renderer using the provided controls or interface.
- Use
ZQSD
to navigate the scene Scroll
to change the field of view (zoom in and out)- Use
SPACE
andSHIFT
to go up and down - Use
CTRL
to go faster - Use
H
to go even faster
This project was created while reading the website learnopengl.com.
This project is licensed under the MIT License. Feel free to use and modify it according to your needs.