pub struct DepthMaterial {
pub alpha_mode: AlphaMode,
pub double_sided: bool,
}Expand description
Depth-only material used by shadow and prepass renderers.
Fields§
§alpha_mode: AlphaModeAlpha behavior for alpha-tested depth passes.
double_sided: boolWhether the material is rendered double-sided.
Implementations§
Source§impl DepthMaterial
impl DepthMaterial
Trait Implementations§
Source§impl Clone for DepthMaterial
impl Clone for DepthMaterial
Source§fn clone(&self) -> DepthMaterial
fn clone(&self) -> DepthMaterial
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 DepthMaterial
Source§impl Debug for DepthMaterial
impl Debug for DepthMaterial
Source§impl Default for DepthMaterial
impl Default for DepthMaterial
Source§impl Material for DepthMaterial
impl Material for DepthMaterial
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 DepthMaterial
impl PartialEq for DepthMaterial
impl StructuralPartialEq for DepthMaterial
Auto Trait Implementations§
impl Freeze for DepthMaterial
impl RefUnwindSafe for DepthMaterial
impl Send for DepthMaterial
impl Sync for DepthMaterial
impl Unpin for DepthMaterial
impl UnsafeUnpin for DepthMaterial
impl UnwindSafe for DepthMaterial
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