Click or drag to resize

GpuMaterialPassDestinationBlendFactor Property

Gets or sets the destination blend factor.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public SceneBlendFactor DestinationBlendFactor { get; set; }

Property Value

Type: SceneBlendFactor
Remarks

Allows very fine control of blending this Pass with the existing contents of the scene. Wheras the texture blending operations seen in the TextureUnitState class are concerned with blending between texture layers, this blending is about combining the output of the material as a whole with the existing contents of the rendering target. This blending therefore allows object transparency and other special effects.

This version of the method allows complete control over the blending operation, by specifying the source and destination blending factors. The result of the blending operation is: final = (texture * sourceFactor) + (pixel * destFactor)

Each of the factors is specified as one of a number of options, as specified in the SceneBlendFactor enumerated type.

See Also