Enum gltf::material::AlphaMode [−][src]
pub enum AlphaMode {
Opaque,
Mask,
Blend,
}
Expand description
The alpha rendering mode of a material.
Variants
Opaque
The alpha value is ignored and the rendered output is fully opaque.
Mask
The rendered output is either fully opaque or fully transparent depending on the alpha value and the specified alpha cutoff value.
Blend
The alpha value is used, to determine the transparency of the rendered output. The alpha cutoff value is ignored.
Trait Implementations
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for AlphaMode
impl UnwindSafe for AlphaMode
Blanket Implementations
Mutably borrows from an owned value. Read more