Software renderer
Triangles are clipped, rasterised and depth-tested on the CPU, then shown with GDI. 2D rectangles and 3D meshes share one frame buffer.
A small game engine in C++ for Windows that draws every pixel itself: no OpenGL, no DirectX, just its own software renderer.
GET IT ON GITHUB
Triangles are clipped, rasterised and depth-tested on the CPU, then shown with GDI. 2D rectangles and 3D meshes share one frame buffer.
Fractal value noise with an island falloff; sand, grass, forest, rock and snow by height and slope; cone trees and a sea. Press R for a new seed.
Move the sun from dawn to night; sky, fog and ambient light follow it, shadows are re-baked, and F lights a torch.
Entities with update callbacks, a fixed 60 Hz game loop and keyboard input. Tab switches between the 2D and 3D demos.
| W A S D | fly |
| Q / E | down / up |
| Arrows or right mouse | look around |
| Shift | fly faster |
| Z / X | move the sun |
| F | torch |
| R | new island |
| Tab | 2D / 3D demo |
| Esc | quit |
Open acacia.sln in Visual Studio 2022 (C++17, Desktop development with C++) and press F5, or from a Developer Command Prompt:
msbuild acacia.vcxproj -p:Configuration=Release -p:Platform=x64