MoonWorks-docs/content/Graphics/Resources/GraphicsPipeline/BlendConstants.md

18 lines
350 B
Markdown
Raw Normal View History

2022-03-04 18:34:23 +00:00
---
title: "Blend Constants"
date: 2021-01-28T12:55:51-08:00
weight: 11
---
Blend constants are only used with `BlendFactor.ConstantColor` and `BlendFactor.OneMinusConstantColor` blend factors. If you aren't using these you don't have to bother.
```cs
var myBlendConstants = new BlendConstants
{
R = 1.0f,
G = 0.33f,
B = 0.66f,
A = 1.0f
};
```