Euphoria
materialshader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "io/json.h"
4 
5 
7 {
8  struct Binding
9  {
10  std::string texture;
11  std::string uniform;
12  };
13 
15  {
16  std::string texture;
17  std::string path;
18  };
19 
21  {
22  std::vector<Binding> textures;
23  bool has_light;
24 
25  std::optional<std::string> ambient;
26  std::optional<std::string> diffuse;
27  std::optional<std::string> specular;
28  std::optional<std::string> shininess;
29 
30  std::vector<DefaultTexture> default_textures;
31  };
32 
34 }
std::optional< std::string > specular
std::optional< std::string > ambient
std::optional< std::string > diffuse
std::optional< std::string > shininess
std::vector< DefaultTexture > default_textures