sgl-3d 0.4.2

Caller-driven 3D rendering for SGL games, native and in the browser (WebGPU)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Original browser skies and exact Three PMREM atlases; see native-sky-export.html.
/// A caller-owned environment: the panorama the sky draws and its
/// prefiltered Three-compatible PMREM atlas, which lights surfaces and
/// reflections.
pub struct EnvironmentMap {
    pub panorama: image::RgbaImage,
    pub filtered: PmremAtlas,
}
pub struct PmremAtlas {
    pub width: u32,
    pub height: u32,
    pub rgba16: Vec<u8>,
}