Struct PositionMultiTextured
- Namespace
- OmegaEngine.Graphics.VertexDecl
- Assembly
- OmegaEngine.dll
A fixed-function vertex format that stores position, shadow information, texture blending weights and texture coordinates. Using this format hints the engine that normals and tangents still need to be calculated.
public struct PositionMultiTextured
- Inherited Members
- Extension Methods
Constructors
PositionMultiTextured(Vector3, float, float, Vector4, float[], Color4)
Creates a new multi-textured vertex
public PositionMultiTextured(Vector3 position, float tu, float tv, Vector4 occlusionIntervals, float[] texWeights, Color4 color)
Parameters
position
Vector3The position of the vertex in entity-space
tu
floatThe U-component of the texture coordinates
tv
floatThe V-component of the texture coordinates
occlusionIntervals
Vector4The angles at which the global light source occlusion begins and ends
texWeights
float[]A 16-element array of texture blending weight
color
Color4A color by which the texture will be multiplied
Fields
Color
A color by which the texture will be multiplied
public Color4 Color
Field Value
- Color4
OcclusionIntervals
The angles at which the global light source occlusion begins and ends
public Vector4 OcclusionIntervals
Field Value
- Vector4
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 = 108
Field Value
TexWeights1
Texture blending weights
public Vector4 TexWeights1
Field Value
- Vector4
TexWeights2
Texture blending weights
public Vector4 TexWeights2
Field Value
- Vector4
TexWeights3
Texture blending weights
public Vector4 TexWeights3
Field Value
- Vector4
TexWeights4
Texture blending weights
public Vector4 TexWeights4
Field Value
- Vector4
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
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
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.