Struct VertexPositionNormalTangentTexture
Represents a vertex with position, normal, and texture coordinate.
Namespace: Evergine.Common.Graphics.VertexFormats
Assembly: Evergine.Common.dll
Syntax
public struct VertexPositionNormalTangentTexture
Constructors
VertexPositionNormalTangentTexture(Vector3, Vector3, Vector3, Vector2)
Initializes a new instance of the VertexPositionNormalTangentTexture struct.
Declaration
public VertexPositionNormalTangentTexture(Vector3 position, Vector3 normal, Vector3 tangent, Vector2 texCoord)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | position | The vertex position. |
Vector3 | normal | The vertex normal. |
Vector3 | tangent | The vertex tangent. |
Vector2 | texCoord | The vertex texCoord. |
Fields
Normal
Vertex normal.
Declaration
public Vector3 Normal
Field Value
Type | Description |
---|---|
Vector3 |
Position
Vertex position.
Declaration
public Vector3 Position
Field Value
Type | Description |
---|---|
Vector3 |
Tangent
Vertex's normal.
Declaration
public Vector3 Tangent
Field Value
Type | Description |
---|---|
Vector3 |
TexCoord
Vertex texture coordinates.
Declaration
public Vector2 TexCoord
Field Value
Type | Description |
---|---|
Vector2 |
VertexFormat
Vertex format.
Declaration
public static readonly LayoutDescription VertexFormat
Field Value
Type | Description |
---|---|
LayoutDescription |