mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Adding OBJ model support
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user