Code re-work: shadow mapping.

This commit is contained in:
Joey de Vries
2017-04-22 20:40:35 +02:00
parent 33dd340549
commit 85530ab997
25 changed files with 1030 additions and 1074 deletions

View File

@@ -78,17 +78,17 @@ public:
}
// utility uniform functions
// ------------------------------------------------------------------------
void setBool(std::string name, bool value)
void setBool(std::string name, bool value) const
{
glUniform1i(glGetUniformLocation(ID, name.c_str()), (int)value);
}
// ------------------------------------------------------------------------
void setInt(std::string name, int value)
void setInt(std::string name, int value) const
{
glUniform1i(glGetUniformLocation(ID, name.c_str()), value);
}
// ------------------------------------------------------------------------
void setFloat(std::string name, float value)
void setFloat(std::string name, float value) const
{
glUniform1f(glGetUniformLocation(ID, name.c_str()), value);
}