Graphite is a FPGA based open source 2D/3D graphics accelerator. See the following project for an integration example: https://github.com/danodus/xgsoc
The documentation is available here: https://danodus.github.io/graphite/
- Draw textured triangle.
- OSS CAD Suite (https://github.com/YosysHQ/oss-cad-suite-build) (*)
- SDL2
(*) Extract and add the bin directory to the path.
Note: Tested with oss-cad-suite-darwin-arm64-20260512.
cd rtl/sim
make run- Press 1 to select the cube model;
- Press 2 to select the teapot model;
- Press W/A/S/D and arrows to move the camera;
- Press SPACE to start/stop the rotation of the model;
- Press TAB to enable/disable the wireframe mode;
- Press T to enable/disable texture mapping;
- Press L to increase the number of directional lights;
- Press G to enable/disable Gouraud shading;
- Press P to enable/disable perspective correction.
- Press M to show or hide a floor that receives the model's shadow.
