Set Blending VI

Owning Palette: Object VIs

Requires: Full Development System

Blends fragment color outputs with destination colors for texturing 3D objects.

 Add to the block diagram  Find on the palette
Scene Object In specifies a reference to the scene you want to manipulate.
Mode specifies how the color values you apply to a 3D object blend.

0Inherit Value (default)—The object inherits the blending mode of a parent object.
1On—Enables blending.
2Off—Disables blending.
Bin specifies the draw bin in which you drop and store objects. The bin of an object affects the order in which the object appears when you render the scene.

0Normal Bin (default)—Stores objects without a specific sorting pattern.
1Opaque Bin—Sorts objects in the scene from front to back relative to the viewer to ensure that objects closer to the camera render first.
2Transparent Bin—Sorts objects in the scene from back to front relative to the viewer to ensure that transparent or translucent objects correctly blend with objects that appear behind them.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Destination specifies the blend factor you apply to the color values of the currently stored pixels. The following source and destination color components are described as (Rs, Gs, Bs, As) for source components and (Rd, Gd, Bd, Ad) for destination components. The components have integer values between 0 and (kR, kG, kB, kA), where kR=2mR 1, kG=2mG 1, kB=2mB 1, and kA=2mA 1. (mR, mG, mB, mA) is the number of bitplanes for each red, green, blue, and alpha value.

0Zero (default)—(0, 0, 0, 0)
1One—(1, 1, 1, 1)
2Source Color—(RS/kR, Gs/kG, Bs/kB, As/kA)
3One Minus Source Color—(1, 1, 1, 1)-(RS/kR, Gs/kG, Bs/kB, As/kA)
4Source Alpha—(As/kA, As/kA, As/kA, As/kA)
5One Minus Source Alpha—(1, 1, 1, 1)-(As/kA, As/kA, As/kA, As/kA)
6Destination Alpha—(Ad/kA, Ad/kA, Ad/kA, Ad/kA)
7One Minus Destination Alpha—(1, 1, 1, 1)-(Ad/kA,Ad/kA, Ad/kA, Ad/kA)
Source specifies the blend factor you apply to the color values of the incoming fragment. The following source and destination color components are described as (Rs, Gs, Bs, As) for source components and (Rd, Gd, Bd, Ad) for destination components. The components have integer values between 0 and (kR, kG, kB, kA), where kR=2mR 1, kG=2mG 1, kB=2mB 1, and kA=2mA 1. (mR, mG, mB, mA) is the number of bitplanes for each red, green, blue, and alpha value.

0Zero (default)—(0, 0, 0, 0)
1One—(1, 1, 1, 1)
2Destination Color—(Rd/kR, Gd/kG, Bd/kB, Ad/kA)
3One Minus Destination Color—(1, 1, 1, 1)-(Rd/kR, Gd/kG, Bd/kB, Ad/kA)
4Source Alpha—(As/kA, As/kA, As/kA, As/kA)
5One Minus Source Alpha—(1, 1, 1, 1)-(As/kA, As/kA, As/kA, As/kA)
6Destination Alpha—(Ad/kA, Ad/kA, Ad/kA, Ad/kA)
7One Minus Destination Alpha—(1, 1, 1, 1)-(Ad/kA, Ad/kA, Ad/kA, Ad/kA)
8Source Alpha Saturate—(i, i, i, 1) where i=min (As, kA, Ad)/kA
Scene Object Out returns a reference to the scene object.
error out contains error information. This output provides standard error out functionality.