#[repr(i32)]pub enum LayerBlendOp {
Mod = 0,
Mod2x = 1,
Add = 2,
Lerp = 3,
TeamColorEmissiveAdd = 4,
TeamColorDiffuseAdd = 5,
AddNoAlpha = 6,
}Expand description
Layer blend operation (MAT_.layerBlendMode, emissiveBlendMode)
Variants§
Mod = 0
Multiply: base * layer
Mod2x = 1
Double multiply: base * layer * 2
Add = 2
Add: base + layer
Lerp = 3
Linear interpolate by layer alpha
TeamColorEmissiveAdd = 4
Team color emissive add
TeamColorDiffuseAdd = 5
Team color diffuse add
AddNoAlpha = 6
Add ignoring alpha channel
Trait Implementations§
Source§impl Clone for LayerBlendOp
impl Clone for LayerBlendOp
Source§fn clone(&self) -> LayerBlendOp
fn clone(&self) -> LayerBlendOp
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 LayerBlendOp
Source§impl Debug for LayerBlendOp
impl Debug for LayerBlendOp
impl Eq for LayerBlendOp
Source§impl Hash for LayerBlendOp
impl Hash for LayerBlendOp
Source§impl PartialEq for LayerBlendOp
impl PartialEq for LayerBlendOp
impl StructuralPartialEq for LayerBlendOp
Auto Trait Implementations§
impl Freeze for LayerBlendOp
impl RefUnwindSafe for LayerBlendOp
impl Send for LayerBlendOp
impl Sync for LayerBlendOp
impl Unpin for LayerBlendOp
impl UnsafeUnpin for LayerBlendOp
impl UnwindSafe for LayerBlendOp
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