Diligent Engine
Loading...
Searching...
No Matches
Diligent::OBJ::Document Struct Reference

#include <OBJLoader.hpp>

Public Attributes

std::vector< Uint32 > Indices
 Triangle indices into the unified Positions/Normals/optional arrays.
std::vector< std::string > MaterialLibraries
 Filenames from mtllib in source order; loading is the caller's responsibility.

Detailed Description

CPU geometry with one shared index for all vertex attributes. Normals are always populated; optional texture coordinates and colors are either empty or have the same length as Positions. Missing values are zero UVs and white colors. Winding and texture V are not transformed; homogeneous positions are divided by W, with no further coordinate conversion.