Table of Contents

Struct PositionNormalBinormalTangentTextured

Namespace
OmegaEngine.Graphics.VertexDecl
Assembly
OmegaEngine.dll

A fixed-function vertex format that stores position, normals, binormals, tangents and texture coordinates. Using this format hints the engine that all necessary data is already present.

public struct PositionNormalBinormalTangentTextured
Inherited Members
Extension Methods

Constructors

PositionNormalBinormalTangentTextured(Vector3, Vector3, Vector3, Vector3, float, float)

Creates a new positioned, textured vertex with normal, binormal and tangent information

public PositionNormalBinormalTangentTextured(Vector3 position, Vector3 normal, Vector3 binormal, Vector3 tangent, float tu, float tv)

Parameters

position Vector3

The position of the vertex in entity-space

normal Vector3

The normal of the vertex in entity-space

binormal Vector3

The binormal of the vertex in entity-space

tangent Vector3

The tangent of the vertex in entity-space

tu float

The U-component of the texture coordinates

tv float

The V-component of the texture coordinates

Fields

Binormal

The binormal of the vertex in entity-space

public Vector3 Binormal

Field Value

Vector3

Normal

The normal of the vertex in entity-space

public Vector3 Normal

Field Value

Vector3

Position

The position of the vertex in entity-space

public Vector3 Position

Field Value

Vector3

StrideSize

The length of this vertex structure in bytes.

public const int StrideSize = 56

Field Value

int

Tangent

The tangent of the vertex in entity-space

public Vector3 Tangent

Field Value

Vector3

Tu

The U-component of the texture coordinates

public float Tu

Field Value

float

Tv

The V-component of the texture coordinates

public float Tv

Field Value

float

Properties

Nx

The X-component of the normal of the vertex in entity-space

public float Nx { get; set; }

Property Value

float

Ny

The X-component of the normal of the vertex in entity-space

public float Ny { get; set; }

Property Value

float

Nz

The X-component of the normal of the vertex in entity-space

public float Nz { get; set; }

Property Value

float

X

The X-component of the position of the vertex in entity-space

public float X { get; set; }

Property Value

float

Y

The Y-component of the position of the vertex in entity-space

public float Y { get; set; }

Property Value

float

Z

The Z-component of the position of the vertex in entity-space

public float Z { get; set; }

Property Value

float

Methods

GetVertexElements()

Returns an array describing the usage of the vertex fields

public static VertexElement[] GetVertexElements()

Returns

VertexElement[]

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.