Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
Specifies mesh weight attributes.
Syntax
typedef struct D3DX10_ATTRIBUTE_WEIGHTS {
FLOAT Position;
FLOAT Boundary;
FLOAT Normal;
FLOAT Diffuse;
FLOAT Specular;
FLOAT Texcoord[8];
FLOAT Tangent;
FLOAT Binormal;
} D3DX10_ATTRIBUTE_WEIGHTS, *LPD3DX10_ATTRIBUTE_WEIGHTS;
Members
-
Position
-
Type: FLOAT
-
Position.
-
Boundary
-
Type: FLOAT
-
Blend weight.
-
Normal
-
Type: FLOAT
-
Normal.
-
Diffuse
-
Type: FLOAT
-
Diffuse lighting value.
-
Specular
-
Type: FLOAT
-
Specular lighting value.
-
Texcoord
-
Type: FLOAT
-
Eight texture coordinates.
-
Tangent
-
Type: FLOAT
-
Tangent.
-
Binormal
-
Type: FLOAT
-
Binormal.
Remarks
This structure 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, the simplification operation will ignore the vertex normal component when calculating the error for the collapse. However, if the Normal field is 1.0, the simplification operation will use the vertex normal component. If the Normal field is 2.0, double the amount of errors; if the Normal field is 4.0, then quadruple the number of errors, and so on.
The LPD3DX_ATTRIBUTE_WEIGHTS type is defined as a pointer to the D3DX_ATTRIBUTE_WEIGHTS structure.
typedef D3DX_ATTRIBUTE_WEIGHTS* LPD3DX_ATTRIBUTE_WEIGHTS;
Requirements
| Requirement | Value |
|---|---|
| Header |
|
See also