mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 18:48:36 +02:00
+ | Texture parse
This commit is contained in:
@ -23,6 +23,7 @@ typedef struct s_Material
|
||||
float metallic;
|
||||
float refraction;
|
||||
int type;
|
||||
int texture_index;
|
||||
} Material;
|
||||
|
||||
class Object
|
||||
|
@ -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();
|
||||
|
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user