The vertex structure for drawing Models in the Vertices Engine. It uses Position, Normal, UV, Tangent and BiNormal.
More...
|
Vector3 | Position |
|
Vector3 | Normal |
|
Vector2 | TextureCoordinate |
|
Vector3 | Tangent |
|
Vector3 | BiNormal |
|
|
static int | SizeInBytes = (3 + 3 + 2 + 3 + 3) * 4 |
|
static VertexDeclaration | VertexDeclaration |
|
|
VertexDeclaration IVertexType. | VertexDeclaration [get] |
|
The vertex structure for drawing Models in the Vertices Engine. It uses Position, Normal, UV, Tangent and BiNormal.
◆ Transform()
Transform the specified vertex by the given matrix.
- Returns
- The transform.
- Parameters
-
vertex | Vertex struct. |
matrix | Transformation Matrix. |
◆ VertexDeclaration
VertexDeclaration VerticesEngine.Graphics.vxMeshVertex.VertexDeclaration |
|
static |
Initial value:= new VertexDeclaration
(
new VertexElement(0, VertexElementFormat.Vector3, VertexElementUsage.Position, 0),
new VertexElement(sizeof(float) * 3, VertexElementFormat.Vector3, VertexElementUsage.Normal, 0),
new VertexElement(sizeof(float) * 6, VertexElementFormat.Vector2, VertexElementUsage.TextureCoordinate, 0),
new VertexElement(sizeof(float) * 8, VertexElementFormat.Vector3, VertexElementUsage.Tangent, 0),
new VertexElement(sizeof(float) * 11, VertexElementFormat.Vector3, VertexElementUsage.Binormal, 0)
)
The documentation for this struct was generated from the following file:
- /github/workspace/src/VerticesEngine/src.shared/Graphics/Model/vxMeshVertex.cs