SimpleEngine/include/simpleengine/gfx/material.h

24 lines
667 B
C
Raw Normal View History

#pragma once
#include "texture.h"
#include <GLFW/glfw3.h>
namespace simpleengine::gfx {
class Material {
public:
Texture texture;
float ambient_scalar;
float diffuse_scalar;
float specular_scalar;
float shine;
float reflectivity;
2022-09-22 02:52:06 +00:00
Material(Texture texture, float shine = 1.f, float reflectivity = 0.f, float specular_scalar = 0.f, float ambient_scalar = 0.f, float diffuse_scalar = 0.f) :
texture(texture), ambient_scalar(ambient_scalar), diffuse_scalar(diffuse_scalar), specular_scalar(specular_scalar),
shine(shine), reflectivity(reflectivity) {
}
};
}