ModelVertexΒΆ
-
struct
ModelVertex: System.ValueType Represents a model vertex with all available data from the model.
Models may store different data in different areas depending on what shader is intended to be used with the model. For example, some models might specify vertex colors, and others might use textures and bump maps.
-
System.Nullable<Vector3>
Position The 3D position in space of this vertex, if specified.
-
System.Nullable<Vector3>
Normal The normal of the vertex, if specified.
-
System.Nullable<Vector3>
Tangent The tangent of the vertex, if specified.
-
System.Nullable<Vector3>
BiTangent The bitangent of the vertex, if specified.
-
Microsoft.Xna.Framework.Color[]
Colors The color channels associated with the vertex. A vertex can have zero or more color channels.
-
Microsoft.Xna.Framework.Vector2[]
TexCoordsUV The 2D texture coordinates associated with the vertex. These texture coordinates are often refered to as UV-coordinates. A vertex can have zero or more texture coordinate channels.
-
Microsoft.Xna.Framework.Vector3[]
TexCoordsUVW The 3D texture coordinates associated with the vertex. These texture coordinates are often refered to as UVW-coordinates. Often you won’t use these; they’re only used if the model is being rendered using a 3D texture or cube, or if you’re storing non-texture data in these channels. A vertex can have zero or more texture coordinate channels.
-
System.Nullable<Byte4>
BoneIndices The indicies of the bones associated with this vertex. This data is calculated by the model importer based on the bones configured in the model. If there are no bones in the model, or this vertex isn’t affected by bones, this value is null.
-
System.Nullable<Vector4>
BoneWeights The weights of the bones associated with this vertex. This data is calculated by the model importer based on the bones configured in the model. If there are no bones in the model, or this vertex isn’t affected by bones, this value is null.
-
string
ToString() Provides a very basic representation of the vertex (just the position information).
Returns: A string representation of the model vertex.
-
ModelVertex
Transform(Matrix matrix) Transforms the current model vertex by the matrix.
Parameters: - matrix (Microsoft.Xna.Framework.Matrix) –
Returns:
-
System.Nullable<Vector3>