Drop-in three.js replacement for Rust and WebAssembly (wgpu) — THREE.* API, scene graph, PBR, post-fx, mesh BVH, CSG, headless render, and native media codecs
usesuper::Texture;/// Convenience constructor for textures populated with raw bytes (no decoder).
/// Mirrors three.js's `DataTexture`.
pubstructDataTexture;implDataTexture{pubfnnew(width:u32, height:u32, format:super::TextureFormat, data:Vec<u8>)-> Texture{letmut t =Texture::new(width, height, format, data);// DataTextures default to no flip — matches three.js.
t.flip_y =false;
t
}}