This is an OpenGL experiment using glfw
for window management, glad
for OpenGL function loading, and glm
for mathematics and transformations. Features model loading, lighting (point, directional, and spot), and camera controls via mouse and keyboard inputs.
This project requires cmake
to build and can be built using the following command:
cmake . && make
Run the executable using ./build/opengl
.
deps/
External header-only libraries and source dependencieslib/
Pre-compiled library files (.so, .dll, .a)src/
Project source filesinclude/
Project header files
Currently, the project only supports loading .gltf
models with support for diffuse and specular textures.
Keyboard Controls:
W
/A
/S
/D
Move forward/left/backward/rightSpace
/Ctrl
Move up/downLeft Shift
Sprint (increased movement speed)
Mouse Controls:
- Left click and drag to look around
- Mouse is hidden and locked to screen center while looking