+ | Texture parse

This commit is contained in:
TheRedShip
2025-01-27 16:59:06 +01:00
parent d93a7342a1
commit 1e0ff2d88d
9 changed files with 38 additions and 7 deletions

View File

@ -23,6 +23,7 @@ typedef struct s_Material
float metallic;
float refraction;
int type;
int texture_index;
} Material;
class Object

View File

@ -106,6 +106,7 @@ class Scene
void addObject(Object *object);
void addMaterial(Material *material);
void addTexture(std::string path);
void updateLightAndObjects(int mat_id);
std::set<int> getGPULights();

View File

@ -24,6 +24,7 @@ class SceneParser
private:
void parseMaterial(std::stringstream &line);
void parseTexture(std::stringstream &line);
void parseCamera(std::stringstream &line);
void parseObj(std::stringstream &line);