pub struct PointsMaterial {
pub color: Color,
pub size: f32,
pub size_attenuation: bool,
pub alpha_mode: AlphaMode,
}Expand description
Point material for point-list geometry.
Fields§
§color: ColorPoint color in linear RGBA.
size: f32Point size in logical pixels.
size_attenuation: boolWhether point size attenuates with depth.
alpha_mode: AlphaModeAlpha behavior.
Implementations§
Trait Implementations§
Source§impl Clone for PointsMaterial
impl Clone for PointsMaterial
Source§fn clone(&self) -> PointsMaterial
fn clone(&self) -> PointsMaterial
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 PointsMaterial
Source§impl Debug for PointsMaterial
impl Debug for PointsMaterial
Source§impl Default for PointsMaterial
impl Default for PointsMaterial
Source§impl Material for PointsMaterial
impl Material for PointsMaterial
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 PointsMaterial
impl PartialEq for PointsMaterial
impl StructuralPartialEq for PointsMaterial
Auto Trait Implementations§
impl Freeze for PointsMaterial
impl RefUnwindSafe for PointsMaterial
impl Send for PointsMaterial
impl Sync for PointsMaterial
impl Unpin for PointsMaterial
impl UnsafeUnpin for PointsMaterial
impl UnwindSafe for PointsMaterial
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