ModelVertexFormat
Description
Describes the vertex format used by a IModelGeometry.
This is the vertex element usage pattern of a geometry buffer:
-
Position:
stored as VertexElementUsage.Position at index 0. -
PositionExtra:
stored as VertexElementUsage.Position at index 1. -
Normal:
stored as VertexElementUsage.Normal at index 0. -
TangentX:
stored as VertexElementUsage.Tangent at index 0. -
TangentY:
stored as VertexElementUsage.Tangent at index 1. -
Color:
stored as VertexElementUsage.Color at index 0. -
TextureCoords:
stored as VertexElementUsage.TextureCoords at index 0. -
TextureCoordsExtra:
stored as VertexElementUsage.TextureCoords at index 1.
Public / Constants
Position
Geometry buffer stores vertex position using VertexElement.DefaultPosition at index 0
.
This is a pseudo flag. Vertex positions are always stored.
- See also
Normal
Geometry buffer stores vertex normal vectors using VertexElement.DefaultNormal at index 0
.
If not present, the GPU will compute them using partial derivatives of the vertex position.
- See also
TangentX
Geometry buffer stores vertex tangent vectors (along texture X-axis) using VertexElement.DefaultTangent at index 0
.
If not present, the GPU will compute them using partial derivatives of the vertex position and the texture coordinates.
- See also
TangentY
Geometry buffer stores vertex tangent vectors (along texture Y-axis) using VertexElement.DefaultTangent at index 1
.
- See also
Color
Geometry buffer stores compressed sRGB vertex colors in the red / green / blue channels (if ModelPartFlags.VertexColorIsBaseColor is present) and linear opacity in the alpha channel (if ModelPartFlags.VertexAlphaIsOcclusion is not present), using VertexElement.DefaultColor at index 0
.
- See also
TextureCoords
Geometry buffer stores primary texture coordinates, using VertexElement.DefaultTextureCoords at index 0
.
- See also
PositionExtra
Geometry buffer stores vertex position precision delta values using VertexFormat.FloatDelta for VertexElementUsage.Position at index 1
.
- See also
TextureCoordsExtra
Geometry buffer stores secondary texture coordinates, using VertexElement.DefaultTextureCoords at index 1
.
- See also