기술 자료

Unity Engine

Unity Engine

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

Creates a new blend state with the given values.
읽는 시간 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.