pub struct MaterialDef {
pub base_color: [f32; 4],
pub roughness: f32,
pub metallic: f32,
pub emissive: [f32; 3],
pub emissive_strength: f32,
pub double_sided: bool,
}Fields§
§base_color: [f32; 4]§roughness: f32§metallic: f32§emissive: [f32; 3]§emissive_strength: f32§double_sided: boolTrait Implementations§
Source§impl Clone for MaterialDef
impl Clone for MaterialDef
Source§fn clone(&self) -> MaterialDef
fn clone(&self) -> MaterialDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaterialDef
impl Debug for MaterialDef
Source§impl<'de> Deserialize<'de> for MaterialDef
impl<'de> Deserialize<'de> for MaterialDef
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 MaterialDef
impl RefUnwindSafe for MaterialDef
impl Send for MaterialDef
impl Sync for MaterialDef
impl Unpin for MaterialDef
impl UnsafeUnpin for MaterialDef
impl UnwindSafe for MaterialDef
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