Added shader uniforms

This commit is contained in:
Robert 2021-01-20 17:57:00 +01:00
parent 8921957161
commit e7582bd081
4 changed files with 464 additions and 1 deletions

View file

@ -74,6 +74,7 @@ int main(int argc, char** argv)
oglu::ClearScreen(GL_COLOR_BUFFER_BIT, oglu::Color(0.29f, 0.13f, 0.23f));
shader->SetUniform("ourColor", &oglu::Color::Blue);
shader->Use();
square.BindAndDraw();