Drop-in three.js replacement for Rust and WebAssembly (wgpu) — THREE.* API, scene graph, PBR, post-fx, mesh BVH, CSG, an OpenSCAD front end with a watertight exact-CSG kernel, headless render, and native media codecs
usecrate::materials::Material;usestd::sync::Arc;/// Camera-facing billboard. Mirrors three.js's `Sprite`. The renderer builds
/// the geometry on the fly — Sprite carries no `BufferGeometry`, only a material.
#[derive(Debug, Clone)]pubstructSprite{pubmaterial:Arc<Material>,
pubcenter:crate::math::Vector2,
}implSprite{pubfnnew(material: Material)->Self{Self{
material:Arc::new(material),
center:crate::math::Vector2::new(0.5,0.5),}}}