Vertex_constants - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

These constants are used for describing the contents of a vertex buffer.

Constant Description
vertex_type_float1 Single floating point attribute
vertex_type_float2 Attribute comprised of a two floating point values
vertex_type_float3 Attribute comprised of a three floating point values
vertex_type_float4 Attribute comprised of a four floating point values
vertex_type_colour Attribute comprised of four unsigned byte values
vertex_type_ubyte4 Attribute comprised of four unsigned byte values

The following constants are used to describe the usage of the vertex attributes.

Constant Description
vertex_usage_position Position attribute (x,y,z)
vertex_usage_colour Color attribute (r,g,b,a)
vertex_usage_normal Normal attribute (nx,ny,nz)
vertex_usage_textcoord Texture coordinates (u,v)
vertex_usage_blendweight Blendweight of the input matrix (used for skeletal animation)
vertex_usage_blendindices Indices of the matrices to use (used for skeletal animation)
vertex_usage_depth Depth attribute
vertex_usage_tangent Tangent attribute
vertex_usage_binormal Binormal attribute
vertex_usage_fog Fog attribute
vertex_usage_sample Sample index

See Also