Can load the backpack model and if you hit R it will be made of glass.
This commit is contained in:
parent
29f1606085
commit
7afef0a930
5 changed files with 28 additions and 14 deletions
|
|
@ -27,6 +27,7 @@ struct Thing {
|
|||
|
||||
struct Scene {
|
||||
Shader shader;
|
||||
Shader reflect_shader;
|
||||
Shader skybox_shader;
|
||||
std::vector<std::string> skybox_faces;
|
||||
Screen screen;
|
||||
|
|
@ -42,9 +43,11 @@ struct Scene {
|
|||
unsigned int skyboxVAO = 0;
|
||||
unsigned int skyboxVBO = 0;
|
||||
unsigned int skybox_texture_id = 0;
|
||||
bool reflect_on = false;
|
||||
|
||||
Scene(components::Scene& config):
|
||||
shader{config.shader.vertex_path, config.shader.frag_path},
|
||||
reflect_shader{config.reflect_shader.vertex_path, config.reflect_shader.frag_path},
|
||||
skybox_shader{config.skybox_shader.vertex_path, config.skybox_shader.frag_path},
|
||||
skybox_faces{config.skybox_faces},
|
||||
screen{.shader={config.screen_shader.vertex_path, config.screen_shader.frag_path}},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue