Adding OBJ model support

This commit is contained in:
brunoherbelin
2020-04-07 00:45:40 +02:00
parent 0ee6f37736
commit 1e9acb544a
6 changed files with 32 additions and 23 deletions

View File

@@ -313,7 +313,7 @@ void Rendering::PopAttrib()
glm::mat4 Rendering::Projection()
{
glm::mat4 projection = glm::ortho(-5.0, 5.0, -5.0, 5.0);
glm::mat4 projection = glm::ortho(-5.0, 5.0, -5.0, 5.0, -5.0, 5.0);
glm::mat4 scale = glm::scale(glm::mat4(1.0f), glm::vec3(1.f, AspectRatio(), 1.f));
return projection * scale;