This commit is contained in:
Robert 2021-01-23 16:43:59 +01:00
parent a17c73d3c9
commit d74c49fed5
6 changed files with 34 additions and 19 deletions

View file

@ -88,7 +88,7 @@ int main(int argc, char** argv)
shader->Use();
shader->SetUniform("model", utah);
shader->SetUniformMatrix4fv("view", 1, GL_FALSE, camera.GetMatrix());
shader->SetUniform("view", camera);
shader->SetUniformMatrix4fv("projection", 1, GL_FALSE, camera.GetProjectionMatrix());
oglu::PolygonMode(GL_FRONT_AND_BACK, GL_LINE);