A minimal 3d rendering library written in Rust, it's mostly a port from existing code. It is first and foremost designed to experiment with Open GL shaders.
First install cargo-watch to constantly compile the project while changing code.
cargo install cargo-watchThen run the watch task
cargo watch -c -x "+nightly build"There are a number of example applications using this library, found in the examples folder. Run
cargo run --exampleto list the examples.
To run one example. e.g. triangles run
cargo run --example trianglesThe latter example also supports live editing of the shader files, check shader files, open files in ./examples/triangles/shaders in your text editor, edit and save it. If the new shader code compiles successfully, changes are applied immediately or otherwise error logs are displayed in the terminal.
Low level libraries
- cgmath - a linear algebra and math library for computer graphics
- gfx-rs/wgpu - an idiomatic wrapper library around WebGPU implementation
- image - a fast image processing library
- spirv-reflect - a reflection API to analyze SPIR-V shader byte code
- ultraviolent - a fast linear & geometric algebra library
- winit - a cross platform window handling library
Engines / Frameworks