文档

Unity Engine

Unity Engine

BlendState

Values for the blend state.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

alphaToMaskTurns on alpha-to-coverage.
blendState0Blend state for render target 0.
blendState1Blend state for render target 1.
blendState2Blend state for render target 2.
blendState3Blend state for render target 3.
blendState4Blend state for render target 4.
blendState5Blend state for render target 5.
blendState6Blend state for render target 6.
blendState7Blend state for render target 7.
separateMRTBlendStatesDetermines whether each render target uses a separate blend state.

Static Properties

Property

Description

defaultValueDefault values for the blend state.