pub enum AlphaMode {
Opaque,
Mask(f32),
Blend,
}Expand description
Steuert die Alpha-Behandlung beim Zeichnen.
Controls how alpha (transparency) is handled when drawing.
Variants§
Opaque
Textur wird deckend gezeichnet; Alphawerte werden ignoriert. Gezeichnete Pixel ersetzen vorhandene Pixel vollständig.
The texture is drawn completely opaque, ignoring alpha values. Any pixels drawn will completely replace the existing pixels.
Mask(f32)
Alphawerte unter dem Schwellwert gelten als vollständig transparent, Werte ab dem Schwellwert als vollständig deckend. Der Schwellwert sollte zwischen 0.0 und 1.0 liegen.
Alpha values below the threshold are considered fully transparent, while values above or equal to the threshold are considered fully opaque. The threshold should be between 0.0 and 1.0.
Blend
Alphawerte werden zum Mischen mit vorhandenen Pixeln verwendet. Der Alphakanal bestimmt die Deckkraft jedes gezeichneten Pixels.
Alpha values are used to blend the new pixels with existing pixels. The alpha channel determines the opacity of each pixel being drawn.