modelio-rs 0.2.1

Safe Rust bindings for Apple's ModelIO framework — assets, meshes, materials, lights, cameras, voxels, textures, and animation on macOS
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use modelio::prelude::*;

fn main() -> modelio::Result<()> {
    let light = PhysicallyPlausibleLight::new()?;
    light.set_color_temperature(3200.0);
    light.set_lumens(1500.0);
    light.set_inner_cone_angle(15.0);
    light.set_outer_cone_angle(40.0);

    println!("physically_plausible_light={:?}", light.info()?);
    println!("✅ modelio physically plausible light OK");
    Ok(())
}