New way of handling lights and materials.
This commit is contained in:
12
material.hpp
12
material.hpp
@@ -13,8 +13,18 @@ public:
|
||||
vec3 m_ambient;
|
||||
float m_rho;
|
||||
float m_shininess;
|
||||
float m_ref_index;
|
||||
|
||||
Material(): m_diffuse(vec3(1.0f)), m_specular(vec3(1.0f)), m_ambient(vec3(1.0f)), m_rho(0.0f), m_shininess(89.0f) { }
|
||||
Material(): m_diffuse(vec3(1.0f)), m_specular(vec3(1.0f)), m_ambient(vec3(1.0f)), m_rho(0.0f), m_shininess(89.0f), m_ref_index(1.0f) { }
|
||||
|
||||
Material(const Material & m) {
|
||||
m_diffuse = m.m_diffuse;
|
||||
m_specular = m.m_specular;
|
||||
m_ambient = m.m_ambient;
|
||||
m_rho = m.m_rho;
|
||||
m_shininess = m.m_shininess;
|
||||
m_ref_index = m.m_ref_index;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user