pub enum AlphaMode {
Opaque,
AlphaTest,
Blend,
}Expand description
Alpha blending mode for UnlitMaterial and SurfaceMaterial.
Variants§
Opaque
Alpha is ignored; surface is drawn in the opaque pass with depth write.
AlphaTest
Fragment is discarded when alpha < alpha_cutoff; drawn in the opaque
pass (avoids blending cost).
Blend
Premultiplied alpha blend over the existing color buffer; drawn in a back-to-front transparent pass with depth write disabled.
Trait Implementations§
impl Copy for AlphaMode
impl Eq for AlphaMode
impl StructuralPartialEq for AlphaMode
Auto Trait Implementations§
impl Forget for AlphaMode
impl Freeze for AlphaMode
impl Move for AlphaMode
impl RefUnwindSafe for AlphaMode
impl Send for AlphaMode
impl Sync for AlphaMode
impl Unpin for AlphaMode
impl UnsafeUnpin for AlphaMode
impl UnwindSafe for AlphaMode
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