refactored shaders

This commit is contained in:
devZoGok
2021-12-01 19:58:44 +02:00
parent 56d4a631a2
commit d8cb09f097
11 changed files with 179 additions and 174 deletions
+5
View File
@@ -224,4 +224,9 @@ namespace vb01{
int uniformLoc = glGetUniformLocation(id, var.c_str());
glUniform1i(uniformLoc, i);
}
void Shader::setUnsignedInt(u32 i, string var){
int uniformLoc = glGetUniformLocation(id, var.c_str());
glUniform1ui(uniformLoc, i);
}
}