ModelVertexFormat

Description

[Flags] [PersistentEnum]
enum Tinman.Engine.Models.ModelVertexFormat

Describes the vertex format used by a IModelGeometry.

This is the vertex element usage pattern of a geometry buffer:

Public / Constants

Position

public constant Position → (0:int32)

Geometry buffer stores vertex position in VertexElementUsage.Position at index 0.

This is a pseudo flag. Vertex positions are always stored.

Normal

public constant Normal → (1:int32)

Geometry buffer stores vertex normal vectors in VertexElementUsage.Normal at index 0.

See also

Semantic.Normal

TangentX

public constant TangentX → (2:int32)

Geometry buffer stores vertex tangent vectors (along texture X-axis) in VertexElementUsage.Tangent at index 0.

TangentY

public constant TangentY → (4:int32)

Geometry buffer stores vertex tangent vectors (along texture Y-axis) in VertexElementUsage.Tangent at index 1.

Albedo

public constant Albedo → (8:int32)

Geometry buffer stores vertex albedo colors (red, green and blue channels) and transparency (alpha channel) in VertexElementUsage.Color at index 0.

See also

Semantic.Texture

TextureCoords

public constant TextureCoords → (16:int32)

Geometry buffer stores texture coordinates in VertexElementUsage.TextureCoords at index 0.

PositionExtra

public constant PositionExtra → (32:int32)

Geometry buffer stores vertex position precision delta in VertexElementUsage.Position at index 1.