ludus::content::scene_format::VertexRecordV6¶
Ludus Wiki · API overview · Browse API
Struct
Version 6 vertex: a VertexRecord plus a mesh-local tangent frame. Tangent.w is +1 or -1 (bitangent = cross(Normal, Tangent.xyz) * w, MikkTSpace/glTF convention) with an XYZ whose component perpendicular to the normalized Normal is longer than MIN_TANGENT_PERPENDICULAR, or 0 with zero XYZ when the vertex has no tangent and consumers derive a frame from texture coordinates.
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h
#include <ludus/content/scene_format/luscn.h>
struct ludus::content::scene_format::VertexRecordV6 final
Fields¶
Position¶
float32 ludus::content::scene_format::VertexRecordV6::Position[SPATIAL_COMPONENTS][SPATIAL_COMPONENTS]
Mesh-local position.
Related types: float32
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h
Normal¶
float32 ludus::content::scene_format::VertexRecordV6::Normal[SPATIAL_COMPONENTS][SPATIAL_COMPONENTS]
Nonzero shading normal.
Related types: float32
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h
Uv¶
float32 ludus::content::scene_format::VertexRecordV6::Uv[2][2]
Mip-zero texture coordinate.
Related types: float32
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h
Tangent¶
float32 ludus::content::scene_format::VertexRecordV6::Tangent[TANGENT_COMPONENTS][TANGENT_COMPONENTS]
Tangent XYZ and handedness, or all zero.
Related types: float32
Declared in modules/content/scene_format/include/ludus/content/scene_format/luscn.h