Struct PositionNormalTextured
- Namespace
- OmegaEngine.Graphics.VertexDecl
- Assembly
- OmegaEngine.dll
A fixed-function vertex format that stores position, normals and texture coordinates. Using this format hints the engine that tangents (and maybe normals) still need to be calculated.
public struct PositionNormalTextured
- Inherited Members
- Extension Methods
Constructors
PositionNormalTextured(Vector3, Vector3, float, float)
Creates a new position, textured vertex with normal information
public PositionNormalTextured(Vector3 position, Vector3 normal, float tu, float tv)
Parameters
position
Vector3The position of the vertex in entity-space
normal
Vector3The normal of the vertex in entity-space
tu
floatThe U-component of the texture coordinates
tv
floatThe V-component of the texture coordinates
Fields
Format
The fixed-function format of this vertex structure.
public const VertexFormat Format = PositionNormal | Texture1
Field Value
- VertexFormat
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 = 32
Field Value
Tu
The U-component of the texture coordinates
public float Tu
Field Value
Tv
The V-component of the texture coordinates
public float Tv
Field Value
Properties
Nx
The X-component of the normal of the vertex in entity-space
public float Nx { get; set; }
Property Value
Ny
The X-component of the normal of the vertex in entity-space
public float Ny { get; set; }
Property Value
Nz
The X-component of the normal of the vertex in entity-space
public float Nz { get; set; }
Property Value
X
The X-component of the position of the vertex in entity-space
public float X { get; set; }
Property Value
Y
The Y-component of the position of the vertex in entity-space
public float Y { get; set; }
Property Value
Z
The Z-component of the position of the vertex in entity-space
public float Z { get; set; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.