Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

Creates a new blend state with the given values.
Read time 1 minuteLast updated 6 days ago

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.