pub struct BasicMaterial {
pub color: [f32; 3],
pub opacity: f32,
}Expand description
Colour and opacity from bsi::ifc::presentation.
Fields§
§color: [f32; 3]Linear RGB in 0..=1.
opacity: f321 is opaque.
Implementations§
Source§impl BasicMaterial
impl BasicMaterial
Sourcepub const DEFAULT: Self
pub const DEFAULT: Self
What the reference viewer draws without any diffuseColor: grey 0.6,
opaque.
Sourcepub fn is_transparent(&self) -> bool
pub fn is_transparent(&self) -> bool
Whether the material needs blending.
Trait Implementations§
Source§impl Clone for BasicMaterial
impl Clone for BasicMaterial
Source§fn clone(&self) -> BasicMaterial
fn clone(&self) -> BasicMaterial
Returns a copy 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 BasicMaterial
impl Debug for BasicMaterial
Source§impl Default for BasicMaterial
impl Default for BasicMaterial
Source§impl PartialEq for BasicMaterial
impl PartialEq for BasicMaterial
impl Copy for BasicMaterial
impl StructuralPartialEq for BasicMaterial
Auto Trait Implementations§
impl Freeze for BasicMaterial
impl RefUnwindSafe for BasicMaterial
impl Send for BasicMaterial
impl Sync for BasicMaterial
impl Unpin for BasicMaterial
impl UnwindSafe for BasicMaterial
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