pub struct Composite {
pub values: Vec<f32>,
}Expand description
A single composite material definition specifying blend ratios.
The values specify mixing ratios for the materials referenced by
the parent CompositeMaterials’ indices. Values typically sum to 1.0.
Fields§
§values: Vec<f32>Mixing ratios for each material (typically summing to 1.0)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Composite
impl<'de> Deserialize<'de> for Composite
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Composite
impl RefUnwindSafe for Composite
impl Send for Composite
impl Sync for Composite
impl Unpin for Composite
impl UnwindSafe for Composite
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