pub struct NormalMaterial {
pub opacity: f32,
pub flat_shading: bool,
pub world_space: bool,
pub double_sided: bool,
}Expand description
Debug material that renders surface normals as RGB colors.
Fields§
§opacity: f32Output opacity.
flat_shading: boolWhether to use flat face normals.
world_space: boolWhether normals are displayed in world space instead of view space.
double_sided: boolWhether the material is rendered double-sided.
Implementations§
Trait Implementations§
Source§impl Clone for NormalMaterial
impl Clone for NormalMaterial
Source§fn clone(&self) -> NormalMaterial
fn clone(&self) -> NormalMaterial
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 NormalMaterial
Source§impl Debug for NormalMaterial
impl Debug for NormalMaterial
Source§impl Default for NormalMaterial
impl Default for NormalMaterial
Source§impl Material for NormalMaterial
impl Material for NormalMaterial
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 NormalMaterial
impl PartialEq for NormalMaterial
impl StructuralPartialEq for NormalMaterial
Auto Trait Implementations§
impl Freeze for NormalMaterial
impl RefUnwindSafe for NormalMaterial
impl Send for NormalMaterial
impl Sync for NormalMaterial
impl Unpin for NormalMaterial
impl UnsafeUnpin for NormalMaterial
impl UnwindSafe for NormalMaterial
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