Microsoft DirectX 8.0 (Visual Basic)

D3DXATTRIBUTEWEIGHTS

Specifies how to weigh vertex components.

Type D3DXATTRIBUTEWEIGHTS
    Boundary As Single
    diffuse As Single
    Normal As Single
    position As Single
    specular As Single
    Tex(0 To 7) As Single
End Type

Members

Boundary
Boundary component weight.
diffuse
Diffuse component weight.
Normal
Normal component weight.
position
Position component weight.
specular
Specular component weight.
Tex
Texture coordinate weights.

Remarks

This type describes how a simplification operation will consider vertex data when calculating relative costs between collapsing edges. For example, if the Normal field is 0.0, then the simplification operation will ignore the vertex normal component when calculating the error for the collapse. However, if the Normal field is 1.0, then the simplification operation will use the vertex normal component. if the Normal field is 2.0, then double the amount of errors; if the Normal field is 4.0, then quadruple the number of errors, and so on.

See Also

D3DX8.CreateSPMesh, D3DX8.GeneratePMesh, D3DX8.SimplifyMesh