70 static std::unique_ptr<GlbContainerResource>
parse(
71 const std::string& path,
72 const std::shared_ptr<GraphicsDevice>& device,
Abstract GPU interface for resource creation, state management, and draw submission.
static std::unique_ptr< GlbContainerResource > parse(const std::string &path, const std::shared_ptr< GraphicsDevice > &device, const StlParserConfig &config=StlParserConfig{})
Configuration options for STL loading.
bool flipYZ
If true, swap Y and Z axes (Z-up CAD -> Y-up engine) and negate new Z.
bool generateTangents
Generate tangents from normals (Gram-Schmidt fallback since STL has no UVs).
bool flipWinding
If true, reverse face winding order.
float diffuseR
Default material diffuse color (STL has no material data).
float metalness
Default material metalness (0 = dielectric, 1 = metal).
bool generateSmoothNormals
float roughness
Default material roughness (0 = mirror, 1 = matte).
float uniformScale
Uniform scale applied to all vertex positions (e.g., 0.001 for mm -> m).