VertexBlend Enumeration
Language: Visual Basic .NET C# Managed C++ JScript .NET (Show All)
Note: This documentation is preliminary and is subject to change.
Defines enumerated values used to control the number of matrices that the system applies when performing multimatrix vertex blending.
Definition
Visual Basic .NET
Public Enum VertexBlend
C#
public enum VertexBlend
Managed C++
__value public enum VertexBlend
JScript .NET
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.2902.0,
Culture=neutral,
PublicKeyToken=31bf3856ad364e35
© 2004 Microsoft Corporation. All rights reserved. Terms of use.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center