3#include "resources/Mesh.hpp"
5#include <unordered_map>
27 glm::vec3
color = glm::vec3(0.0f);
52 explicit Object(
const std::string & aName) :
63int load(
const std::string & filePath, std::vector<Object> & objects, std::unordered_map<std::string, Material> & materials);
Represents a geometric mesh composed of vertices, other attributes and triangles.
Definition: Mesh.hpp:15
Commposite OBJ files loading.
Definition: CompositeObj.cpp:5
int load(const std::string &filePath, std::vector< Object > &objects, std::unordered_map< std::string, Material > &materials)
Definition: CompositeObj.cpp:318
OBJ material descriptor.
Definition: CompositeObj.hpp:16
bool hasColor
Has an albedo value.
Definition: CompositeObj.hpp:33
std::string displacementTexturePath
Displacement texture path.
Definition: CompositeObj.hpp:20
bool hasRough
Has a roughness value.
Definition: CompositeObj.hpp:34
float spec
Specular value.
Definition: CompositeObj.hpp:30
std::string roughTexturePath
Roughness texture path.
Definition: CompositeObj.hpp:22
std::string colorTexturePath
Albedo texture path.
Definition: CompositeObj.hpp:21
glm::vec3 color
Albedo value.
Definition: CompositeObj.hpp:27
std::string normalTexturePath
Normal texture path.
Definition: CompositeObj.hpp:18
std::string metalTexturePath
Metalness texture path.
Definition: CompositeObj.hpp:23
bool hasMetal
Has a metalness value.
Definition: CompositeObj.hpp:35
float rough
Roughness value.
Definition: CompositeObj.hpp:28
std::string alphaTexturePath
Alpha texture path.
Definition: CompositeObj.hpp:19
float metal
Metalness value.
Definition: CompositeObj.hpp:29
bool hasSpec
Has a specular value.
Definition: CompositeObj.hpp:36
std::string specTexturePath
Specular texture path.
Definition: CompositeObj.hpp:24
Associate a mesh and a material.
Definition: CompositeObj.hpp:42
std::string name
Name of the object.
Definition: CompositeObj.hpp:45
std::string material
Name of the material.
Definition: CompositeObj.hpp:46
Object(const std::string &aName)
Definition: CompositeObj.hpp:52
Mesh mesh
The mesh.
Definition: CompositeObj.hpp:44