mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-19 14:01:02 +01:00
Replace the legacy Rust procedural library with clean-room native primitives, typed function execution and FX-Map graphs. Save supported content as native SBS and organize the model, evaluators, codecs and editors into focused modules. Add shared graph editing behavior, flat filtered node menus, frame and comment editing, named Explorer outputs and an original atomic sample. Document the tested scope and remaining interoperability work.
26 lines
1.1 KiB
Rust
26 lines
1.1 KiB
Rust
/// What [`crate::Headless::render_png`] draws
|
||
#[derive(Clone, Debug, Default)]
|
||
pub struct RenderOptions {
|
||
/// `3d` (default) or `2d` (a node's output; the 2D view's node by default)
|
||
pub view: Option<String>,
|
||
pub width: Option<u32>,
|
||
pub height: Option<u32>,
|
||
/// Camera overrides in degrees (the session's view is not changed)
|
||
pub yaw: Option<f32>,
|
||
pub pitch: Option<f32>,
|
||
/// 3D scene override (`rounded_cube`, `sphere`, …)
|
||
pub scene: Option<String>,
|
||
/// 2D: the node whose output to show
|
||
pub node: Option<u64>,
|
||
/// 2D: the output port
|
||
pub port: Option<usize>,
|
||
/// Cook at full size instead of the preview size
|
||
pub full: bool,
|
||
/// 3D: UV repeats override (the session's view is not changed)
|
||
pub tiling: Option<f32>,
|
||
/// 3D: beauty render: the height output displaces a subdivided mesh, with ray-traced ambient occlusion, a shadowed key light and 3×3 supersampling. Slower; for stills
|
||
pub hq: bool,
|
||
/// 3D, with `hq`: displacement depth in scene radii (default 0.04)
|
||
pub displacement: Option<f32>,
|
||
}
|