OpacityMaterialExtension

Trait OpacityMaterialExtension 

Source
pub trait OpacityMaterialExtension<A> {
    // Required method
    fn apply_opacity(a: &mut A, b: &mut Self, opacity: f32);
}
Expand description

A MaterialExtension with an opacity value.

Required Methods§

Source

fn apply_opacity(a: &mut A, b: &mut Self, opacity: f32)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T: OpacityAsset> OpacityMaterialExtension<T> for ForwardDecalMaterialExt

Source§

fn apply_opacity(a: &mut T, _: &mut Self, opacity: f32)

Implementors§