pub struct Material {
pub two_sided: bool,
pub name: Option<Name>,
pub color: HashMap<String, Color>,
pub param: ParamMap,
pub texture: HashMap<String, Texture>,
}Expand description
The Material structure contains information about a material. Material structures are
referenced by geometry nodes through Arc<Material> structures belonging to GeometryNode
structures.
Fields§
§two_sided: boolWhether the material is two-sided.
name: Option<Name>An optional name.
color: HashMap<String, Color>Any number of colors.
param: ParamMapAny number of parameters.
texture: HashMap<String, Texture>Any number of textures.
Auto Trait Implementations§
impl Freeze for Material
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin 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