Blending mode to be used for drawing. Usually in Opaque mode or Normal transparency.
View code on GitHub
Namespace: DeltaEngine.CoreAssembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Members
Member name | Value | Description | |
---|---|---|---|
Opaque | 0 | Opaque is the fastest mode as it does not use any blending. Used for non alpha images. View code on GitHub | |
Normal | 1 | 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 | |
AlphaTest | 2 | 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 | |
Additive | 3 | 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 | |
Subtractive | 4 | 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 | |
LightEffect | 5 | 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