Files
materialcraft/crates/automation/src/render_options.rs
chasse20 d318484b41 Checkpoint native SBS primitive workflow
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.
2026-11-05 18:23:06 -05:00

26 lines
1.1 KiB
Rust
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// 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>,
}