- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMaterial.cpp
More file actions
Latest commit
25 lines (19 loc) · 430 Bytes
/
Copy pathMaterial.cpp
File metadata and controls
25 lines (19 loc) · 430 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include"Material.h"
Material::Material()
{
specularIntensity = 0.0f;
shininess = 0.0f;
}
Material::Material(GLfloat sIntensity, GLfloat shine)
{
specularIntensity = sIntensity;
shininess = shine;
}
voidMaterial::UseMaterial(GLuint specularIntensityLocation, GLuint shininessLocation)
{
glUniform1f(specularIntensityLocation, specularIntensity);
glUniform1f(shininessLocation, shininess);
}
Material::~Material()
{
}