RenderTargetBlendState
Values for the blend state.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
- Implements: IEquatable<RenderTargetBlendState>
public struct RenderTargetBlendState : IEquatable<RenderTargetBlendState>
Remarks
Additional Resources: RenderStateBlock, ShaderLab: Blending.
Constructors
Constructor | Description |
|---|---|
| RenderTargetBlendState(UnityEngine.Rendering.ColorWriteMask,UnityEngine.Rendering.BlendMode,UnityEngine.Rendering.BlendMode,UnityEngine.Rendering.BlendMode,UnityEngine.Rendering.BlendMode,UnityEngine.Rendering.BlendOp,UnityEngine.Rendering.BlendOp) | Creates a new blend state with the given values. |
Properties
Property | Description |
|---|---|
| alphaBlendOperation | Operation used for blending the alpha (A) channel. |
| colorBlendOperation | Operation used for blending the color (RGB) channel. |
| destinationAlphaBlendMode | Blend factor used for the alpha (A) channel of the destination. |
| destinationColorBlendMode | Blend factor used for the color (RGB) channel of the destination. |
| sourceAlphaBlendMode | Blend factor used for the alpha (A) channel of the source. |
| sourceColorBlendMode | Blend factor used for the color (RGB) channel of the source. |
| writeMask | Specifies which color components will get written into the target framebuffer. |
Static Properties
Property | Description |
|---|---|
| defaultValue | Default values for the blend state. |