Show / Hide Table of Contents

Enum BlendState

How pixel colours are combined when a source pixel is drawn onto a target pixel

Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public enum BlendState : int

Fields

Name Description
AdditiveAlpha

Source pixel is added to destination based on the source alpha channel Desintation[RGB] = Destination[RGB] + (Source[RGB] * Source[A]) Destination[A] = 1.0 + Source[A]

AdditiveComponentWise

Destination[RGBA] = Destination[RGBA] + Source[RGBA]

Alpha

Common BlendState (default) Destination[RGB] = (Source[RGB] * Source[A]) + (Destination[RGB] * (1.0 - Source[A])) Desination[A] = Source[A] + (1.0 - Source[A]) == 1.0 Constant

Override

Destination pixel colour is overwritten with new source pixel

In This Article
Back to top yak2D - Alex Paterson