文档

Unity Engine

Unity Engine

RenderTargetBlendState(ColorWriteMask, BlendMode, BlendMode, BlendMode, BlendMode, BlendOp, BlendOp)

Creates a new blend state with the given values.
阅读时间1 分钟最后更新于 1 个月前

Definition

public RenderTargetBlendState(ColorWriteMask writeMask = ColorWriteMask.All, BlendMode sourceColorBlendMode = BlendMode.One, BlendMode destinationColorBlendMode = BlendMode.Zero, BlendMode sourceAlphaBlendMode = BlendMode.One, BlendMode destinationAlphaBlendMode = BlendMode.Zero, BlendOp colorBlendOperation = BlendOp.Add, BlendOp alphaBlendOperation = BlendOp.Add)

Parameters

Specifies which color components will get written into the target framebuffer.

sourceColorBlendMode

Blend factor used for the color (RGB) channel of the source.

destinationColorBlendMode

Blend factor used for the color (RGB) channel of the destination.

sourceAlphaBlendMode

Blend factor used for the alpha (A) channel of the source.

destinationAlphaBlendMode

Blend factor used for the alpha (A) channel of the destination.

colorBlendOperation

Operation used for blending the color (RGB) channel.

alphaBlendOperation

Operation used for blending the alpha (A) channel.