mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
refactored shaders
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user