Struct GorgonVertexPosNormUvTangent
A vertex with a position, normal, diffuse color, UV texture coordinate, and a tangent vector.
Inherited Members
Namespace: Gorgon.Renderers.Geometry
Assembly: Gorgon.Graphics.Core.dll
Syntax
public struct GorgonVertexPosNormUvTangent
Constructors
| Edit this page View SourceGorgonVertexPosNormUvTangent(Vector3, Vector3, Vector2, Vector4)
Initializes a new instance of the GorgonVertexPosNormUvTangent struct.
Declaration
public GorgonVertexPosNormUvTangent(Vector3 pos, Vector3 normal, Vector2 uv, Vector4 tangent)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | pos | The position. |
Vector3 | normal | The vertex normal. |
Vector2 | uv | The texture coordinates. |
Vector4 | tangent | The tangent for the vertex. |
GorgonVertexPosNormUvTangent(Vector4, Vector3, Vector2, Vector4)
Initializes a new instance of the GorgonVertexPosNormUvTangent struct.
Declaration
public GorgonVertexPosNormUvTangent(Vector4 pos, Vector3 normal, Vector2 uv, Vector4 tangent)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | pos | The position. |
Vector3 | normal | The vertex normal. |
Vector2 | uv | The texture coordinates. |
Vector4 | tangent | The tangent for the vertex. |
Fields
| Edit this page View SourceNormal
The normal for the vertex.
Declaration
[InputElement(1, "NORMAL")]
public Vector3 Normal
Field Value
Type | Description |
---|---|
Vector3 |
Position
The position of the vertex.
Declaration
[InputElement(0, "SV_POSITION")]
public Vector4 Position
Field Value
Type | Description |
---|---|
Vector4 |
SizeInBytes
The size of the vertex, in bytes.
Declaration
public static readonly int SizeInBytes
Field Value
Type | Description |
---|---|
int |
Tangent
The tangent vector.
Declaration
[InputElement(3, "TANGENT")]
public Vector4 Tangent
Field Value
Type | Description |
---|---|
Vector4 |
UV
The texture coordinate for the vertex.
Declaration
[InputElement(2, "TEXCOORD")]
public Vector2 UV
Field Value
Type | Description |
---|---|
Vector2 |
Methods
| Edit this page View SourceDeconstruct(out Vector4, out Vector3, out Vector2, out Vector4)
Deconstructs this instance into a tuple.
Declaration
public readonly void Deconstruct(out Vector4 position, out Vector3 normal, out Vector2 uv, out Vector4 tangent)
Parameters
Type | Name | Description |
---|---|---|
Vector4 | position | The position. |
Vector3 | normal | The normal. |
Vector2 | uv | The texture coordinate. |
Vector4 | tangent | The tangent. |
Deconstruct(out float, out float, out float)
Deconstructs this instance into individual position values.
Declaration
public readonly void Deconstruct(out float x, out float y, out float z)
Parameters
Type | Name | Description |
---|---|---|
float | x | The X coordinate of the Position. |
float | y | The Y coordinate of the Position. |
float | z | The Z coordinate of the Position. |