pub struct PartData {
pub mesh: Option<Mesh>,
pub textures: [u32; 3],
pub blend_mode: BlendMode,
pub tint: [f32; 3],
pub screen_tint: [f32; 3],
pub emission_strength: f32,
pub mask: Vec<Mask>,
pub mask_threshold: f32,
pub opacity: f32,
pub psd_layer_path: Option<String>,
}Expand description
Data for a visual node (renderable mesh with textures).
Fields§
§mesh: Option<Mesh>Node geometry (vertices, indices, UVs, origin).
textures: [u32; 3]List of texture indices to render in this node.
Multiple textures can be stacked (layers).
Indices per texture slot: [0] = Albedo, [1] = Emissive, [2] = BumpMap
blend_mode: BlendModeBlend mode (Normal, Multiply, Screen, etc).
tint: [f32; 3]Additive RGB tint (1.0, 1.0, 1.0 = no change).
screen_tint: [f32; 3]Screen tint (for screen light/color effects).
emission_strength: f32Emission strength (node glow/brightness).
mask: Vec<Mask>Node mask (for masking).
mask_threshold: f32Threshold for alpha clipping (binary mask).
opacity: f32Global opacity (0.0 = transparent, 1.0 = opaque).
psd_layer_path: Option<String>Path in original PSD file (creation metadata).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PartData
impl RefUnwindSafe for PartData
impl Send for PartData
impl Sync for PartData
impl Unpin for PartData
impl UnsafeUnpin for PartData
impl UnwindSafe for PartData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more