BlendState
Values for the blend state.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
- Implements: IEquatable<BlendState>
public struct BlendState : IEquatable<BlendState>
Remarks
Additional Resources: RenderStateBlock, ShaderLab: Blending.
Constructors
Constructor | Description |
|---|---|
| BlendState(System.Boolean,System.Boolean) | Creates a new blend state with the specified values. |
Properties
Property | Description |
|---|---|
| alphaToMask | Turns on alpha-to-coverage. |
| blendState0 | Blend state for render target 0. |
| blendState1 | Blend state for render target 1. |
| blendState2 | Blend state for render target 2. |
| blendState3 | Blend state for render target 3. |
| blendState4 | Blend state for render target 4. |
| blendState5 | Blend state for render target 5. |
| blendState6 | Blend state for render target 6. |
| blendState7 | Blend state for render target 7. |
| separateMRTBlendStates | Determines whether each render target uses a separate blend state. |
Static Properties
Property | Description |
|---|---|
| defaultValue | Default values for the blend state. |