pub struct MaterialColorUpdate { /* private fields */ }Expand description
An accumulated material color shift (delta over the base color).
Implementations§
Source§impl MaterialColorUpdate
impl MaterialColorUpdate
Sourcepub fn new(
material_index: u32,
color_type: MaterialColorType,
target_value: [f32; 4],
weight: f32,
) -> Self
pub fn new( material_index: u32, color_type: MaterialColorType, target_value: [f32; 4], weight: f32, ) -> Self
Creates a weighted update for one material color property.
Sourcepub fn material_index(&self) -> u32
pub fn material_index(&self) -> u32
Returns the raw glTF material index to update.
Sourcepub fn color_type(&self) -> MaterialColorType
pub fn color_type(&self) -> MaterialColorType
Returns the material color property to update.
Sourcepub fn target_value(&self) -> [f32; 4]
pub fn target_value(&self) -> [f32; 4]
Returns the expression’s full-weight target value.
Trait Implementations§
Source§impl Clone for MaterialColorUpdate
impl Clone for MaterialColorUpdate
impl Copy for MaterialColorUpdate
Source§impl Debug for MaterialColorUpdate
impl Debug for MaterialColorUpdate
Source§impl PartialEq for MaterialColorUpdate
impl PartialEq for MaterialColorUpdate
impl StructuralPartialEq for MaterialColorUpdate
Auto Trait Implementations§
impl Freeze for MaterialColorUpdate
impl RefUnwindSafe for MaterialColorUpdate
impl Send for MaterialColorUpdate
impl Sync for MaterialColorUpdate
impl Unpin for MaterialColorUpdate
impl UnsafeUnpin for MaterialColorUpdate
impl UnwindSafe for MaterialColorUpdate
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