Basic 3D OpenGL demo with a first-person camera. Shaders are (re)loaded at runtime to allow live editing.
Requires Nim (0.17.0 or higher), SDL2 (with development files) and its Nim bindings:
nimble install basic3d sdl2 opengl
Build and run the demo:
make run
- W - Move forward
- A - Move left
- S - Move back
- D - Move right
- Q - Move up
- E - Move down
- G - Toggle wireframe
- hold space - Fast movement
- hold shift - Slow movement
- drag left mouse button - Move sun or spline points
- drag right mouse button - Rotate camera