pub struct Material {Show 26 fields
pub family: Family,
pub base: [f32; 3],
pub roughness: f32,
pub metalness: f32,
pub specular: f32,
pub clearcoat: f32,
pub clearcoat_roughness: f32,
pub sheen: f32,
pub transmission: f32,
pub ior: f32,
pub dispersion: f32,
pub thickness: f32,
pub subsurface: f32,
pub subsurface_tint: [f32; 3],
pub absorption: f32,
pub thin_film: f32,
pub thin_film_ior: f32,
pub thin_film_amount: f32,
pub emission: [f32; 3],
pub fresnel_power: f32,
pub normal: Normal,
pub maps: Maps,
pub content: Content,
pub content_layer: ContentLayer,
pub layers: [NoiseLayer; 4],
pub ageing: Ageing,
}Fields§
§family: Family§base: [f32; 3]§roughness: f32§metalness: f32§specular: f32§clearcoat: f32§clearcoat_roughness: f32§sheen: f32§transmission: f32§ior: f32§dispersion: f32§thickness: f32§subsurface: f32§subsurface_tint: [f32; 3]§absorption: f32§thin_film: f32§thin_film_ior: f32§thin_film_amount: f32§emission: [f32; 3]§fresnel_power: f32§normal: Normal§maps: Maps§content: Content§content_layer: ContentLayer§layers: [NoiseLayer; 4]§ageing: AgeingImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Material
impl<'de> Deserialize<'de> for Material
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
impl Copy for Material
impl StructuralPartialEq for Material
Auto Trait Implementations§
impl Freeze for Material
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnsafeUnpin for Material
impl UnwindSafe for Material
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