BlendMode EnumerationDelta Engine Documentation
Blending mode to be used for drawing. Usually in Opaque mode or Normal transparency. View code on GitHub

Namespace: DeltaEngine.Core
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public enum BlendMode
Members

  Member nameValueDescription
Opaque0 Opaque is the fastest mode as it does not use any blending. Used for non alpha images. View code on GitHub
Normal1 Default blending mode is source alpha with inverted source alpha for the destination. Usually used for images with alpha, otherwise Opaque is choosen. View code on GitHub
AlphaTest2 Same as opaque, but use AlphaTest to discard any pixel below 0.66f in the alpha channel. Rendering this is faster than Normal because we need no sorting and we can skip pixels. View code on GitHub
Additive3 Used to accumulate the color we already got, all pixels are added to the destination. Has the advantage that we do not need to sort, can be rendered in any order after Opaque. View code on GitHub
Subtractive4 Opposite of additive blending. Instead of always adding more brightness to the target screen pixels, this one subtracts brightness. Often used for fake shadowing effects (blob shadows). View code on GitHub
LightEffect5 Special blend mode of DestColor+One used for light effects (similar to lightmap shaders, but just using a lightmap, no diffuse texture). Used for glow, light and flare effects. View code on GitHub
See Also