6 releases
Uses new Rust 2024
| new 0.3.2 | Jun 6, 2026 |
|---|---|
| 0.3.1 | May 27, 2026 |
| 0.2.0 | May 9, 2026 |
| 0.1.1 | Mar 3, 2026 |
#9 in #truck
140KB
3K
SLoC
Visualization of shape and polygon mesh based on platform
monstertruck-render
Shape and polygon mesh visualization built on monstertruck-gpu.
Forked from
truck-rendimplv0.6.0 by ricosjp.
Quick Start
use monstertruck_gpu::*;
use monstertruck_render::*;
let handler = pollster::block_on(DeviceHandler::default_device());
let mut scene = Scene::new(handler, &Default::default());
// Create render instances from a mesh
let creator = scene.instance_creator();
let instance: PolygonInstance = creator.create_instance(
&mesh,
&PolygonState {
material: Material {
albedo: Vector4::new(0.8, 0.2, 0.2, 1.0),
roughness: 0.3,
..Default::default()
},
..Default::default()
},
);
scene.add_object(&instance);
License
Apache License 2.0
Dependencies
~10–48MB
~710K SLoC