Share via


VertexBlend Enumeration (Microsoft.DirectX.Direct3D)

Defines enumerated values used to control the number of matrices that the system applies when performing multimatrix vertex blending.

Definition

Visual Basic Public Enum VertexBlend
C# public enum VertexBlend
C++ public enum class VertexBlend
JScript public enum VertexBlend

Members

Member Value Description
ZeroWeights 256 Uses a single matrix with a weight of 1.0.
Tweening 255 Uses the value assigned to RenderStateManager.TweenFactor.
ThreeWeights 3 Enables vertex blending between the four matrices set by the Transforms.SetWorldMatrixByIndex method, where the index values for the transformation states are 0, 1, 2, and 3. These matrices also can be set using the device.Transform.World, device.Transform.World1, device.Transform.World2, and device.Transform.World3 properties.
TwoWeights 2 Enables vertex blending between the three matrices set by the Transforms.SetWorldMatrixByIndex method, where the index values for the transformation states are 0, 1, and 2. These matrices also can be set using the device.Transform.World, device.Transform.World1, and device.Transform.World2 properties.
OneWeights 1 Enables vertex blending between the two matrices set by the Transforms.SetWorldMatrixByIndex method, where the index values for the transformation states are 0 and 1. These matrices also can be set using the device.Transform.World and device.Transform.World1 properties.
Disable 0 Disables vertex blending and applies only the world matrix (set by the Transforms.SetWorldMatrixByIndex method, where the index value for the transformation state is 0, or with the Device.Transform.World property).

Remarks

This enumeration is used by the RenderStateManager.VertexBlend parameters.

Multimatrix vertex blending (also known as geometry blending) requires that an application use a vertex format that has blending (beta) weights for each vertex.

Enumeration Information

Namespace Microsoft.DirectX.Direct3D
Assembly Microsoft.DirectX.Direct3D (microsoft.directx.direct3d.dll)
Strong Name Microsoft.DirectX.Direct3D,  Version=1.0.900.0,  Culture=neutral,  PublicKeyToken=d3231b57b74a1492