revamped resource system
This commit is contained in:
@@ -5,23 +5,27 @@
|
||||
#ifndef B_ENGINE_MATERIAL_H
|
||||
#define B_ENGINE_MATERIAL_H
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
#include "Texture.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
alignas(16) glm::vec3 ambient;
|
||||
alignas(16) glm::vec3 diffuse;
|
||||
alignas(16) glm::vec3 specular;
|
||||
glm::vec3 ambient;
|
||||
glm::vec3 diffuse;
|
||||
glm::vec3 specular;
|
||||
float shininess;
|
||||
} PhongProperties;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
Texture* diffuse;
|
||||
Texture* specular;
|
||||
Texture* normal;
|
||||
std::shared_ptr<Texture> diffuse;
|
||||
std::shared_ptr<Texture> specular;
|
||||
std::shared_ptr<Texture> normal;
|
||||
|
||||
std::string name;
|
||||
|
||||
PhongProperties phong;
|
||||
} Material;
|
||||
|
||||
Reference in New Issue
Block a user