Table of Contents

What Is Blend State?

The definition for the Blend State for MonoGame!

The Blend state controls how color and alpha values are blended when combining rendered data with existing render target data.

The blend state class, BlendState, contains state that controls how colors are blended. Each time you render, the pixel data you generate (call it source data) is stored in a render target. The render target might be empty or it might already contain data (call it destination data). Blending occurs each time you combine source and destination data.

You have a lot of control over how you blend the source and the destination data.

For example:

You can blend only the color data or the alpha data, or both, by setting up the blending functions ColorBlendFunction and AlphaBlendFunction. You can even limit your blending operation to one or more colors (or channels) using ColorWriteChannels.

Note

For an example that creates and uses a state object, see Creating a State Object.

© 2012 Microsoft Corporation. All rights reserved.