pub struct WireframeMaterial {
pub color: Color,
pub opacity: f32,
pub line_width: f32,
pub double_sided: bool,
}Expand description
Wireframe overlay material.
Fields§
§color: ColorWire color in linear RGBA.
opacity: f32Wire opacity in 0.0..=1.0.
line_width: f32Wire width in logical pixels.
double_sided: boolWhether the material is rendered double-sided.
Implementations§
Trait Implementations§
Source§impl Clone for WireframeMaterial
impl Clone for WireframeMaterial
Source§fn clone(&self) -> WireframeMaterial
fn clone(&self) -> WireframeMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WireframeMaterial
Source§impl Debug for WireframeMaterial
impl Debug for WireframeMaterial
Source§impl Default for WireframeMaterial
impl Default for WireframeMaterial
Source§impl Material for WireframeMaterial
impl Material for WireframeMaterial
Source§fn pipeline_key(&self) -> PipelineKey
fn pipeline_key(&self) -> PipelineKey
Returns the renderer pipeline selector for this material state.
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Returns whether the material should be rendered in a transparent path.
Source§fn double_sided(&self) -> bool
fn double_sided(&self) -> bool
Returns whether back-face culling should be disabled.
Source§fn alpha_cutoff(&self) -> Option<f32>
fn alpha_cutoff(&self) -> Option<f32>
Returns the alpha-test cutoff for masked materials.
Source§impl PartialEq for WireframeMaterial
impl PartialEq for WireframeMaterial
impl StructuralPartialEq for WireframeMaterial
Auto Trait Implementations§
impl Freeze for WireframeMaterial
impl RefUnwindSafe for WireframeMaterial
impl Send for WireframeMaterial
impl Sync for WireframeMaterial
impl Unpin for WireframeMaterial
impl UnsafeUnpin for WireframeMaterial
impl UnwindSafe for WireframeMaterial
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