pub struct Material {Show 15 fields
pub base_color: [f32; 4],
pub emissive: [f32; 3],
pub emissive_strength: f32,
pub metallic: f32,
pub roughness: f32,
pub occlusion_strength: f32,
pub normal_scale: f32,
pub height_scale: f32,
pub height_midlevel: f32,
pub alpha_cutoff: f32,
pub alpha_mode: AlphaMode,
pub double_sided: bool,
pub height_mode: HeightMode,
pub textures: TextureIds,
pub structs: Structs,
}Expand description
A glTF metallic-roughness material; factors multiply their textures.
Fields§
§base_color: [f32; 4]Linear RGBA.
emissive: [f32; 3]Linear RGB.
emissive_strength: f32§metallic: f32§roughness: f32§occlusion_strength: f32§normal_scale: f32§height_scale: f32§height_midlevel: f32§alpha_cutoff: f32§alpha_mode: AlphaMode§double_sided: bool§height_mode: HeightMode§textures: TextureIds§structs: StructsAttached structs (version 2, from the ASTRUCT file after the record):
Scope::Asset the material.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Material
Auto Trait Implementations§
impl Forget for Material
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