Initial commit
This commit is contained in:
22
src/material.hpp
Normal file
22
src/material.hpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef FAN_MATERIAL_HPP_
|
||||
#define FAN_MATERIAL_HPP_
|
||||
|
||||
#include "shader.hpp"
|
||||
#include "texture.hpp"
|
||||
|
||||
namespace Fan
|
||||
{
|
||||
|
||||
struct Material
|
||||
{
|
||||
Rc<Shader> shader;
|
||||
Rc<Texture> diffuse_map;
|
||||
Rc<Texture> specular_map;
|
||||
float shininess{32.0f};
|
||||
|
||||
void bind() const;
|
||||
};
|
||||
|
||||
} // namespace Fan
|
||||
|
||||
#endif // FAN_MATERIAL_HPP_
|
||||
Reference in New Issue
Block a user