Fixed vertical inversion of clones, rendering output, etc.

This commit is contained in:
brunoherbelin
2020-05-23 23:29:17 +02:00
parent 7ac223819b
commit ddace961ae
4 changed files with 9 additions and 6 deletions

View File

@@ -206,7 +206,7 @@ void RenderView::setResolution(glm::vec3 resolution)
void RenderView::draw()
{
static glm::mat4 projection = glm::ortho(-1.f, 1.f, -1.f, 1.f, -SCENE_DEPTH, 1.f);
static glm::mat4 projection = glm::ortho(-1.f, 1.f, 1.f, -1.f, -SCENE_DEPTH, 1.f);
glm::mat4 P = glm::scale( projection, glm::vec3(1.f / frame_buffer_->aspectRatio(), 1.f, 1.f));
frame_buffer_->begin();
scene.root()->draw(glm::identity<glm::mat4>(), P);