Ensure correct Vulkan coordinate system for CTexturedQuadFilter

This commit is contained in:
Jack Andersen 2016-09-13 20:08:29 -10:00
parent 31eb3e5223
commit f5ac582541
2 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ BOO_GLSL_BINDING_HEAD
" vtf.color = color;\n"
" vtf.uv = uvIn.xy * uvScale;\n"
" gl_Position = mtx * vec4(posIn.xyz, 1.0);\n"
" gl_Position = FLIPFROMGL(gl_Position);\n"
"}\n";
static const char* FS =

View File

@ -67,7 +67,7 @@ void CSplashScreen::Draw() const
zeus::CRectangle rect;
float aspect = CGraphics::g_ViewportResolution.x / float(CGraphics::g_ViewportResolution.y);
rect.size.x = m_quad.GetTex()->GetWidth() / (640.f * aspect);
rect.size.x = m_quad.GetTex()->GetWidth() / (480.f * aspect);
rect.size.y = m_quad.GetTex()->GetHeight() / 480.f;
rect.position.x = 0.5f - rect.size.x / 2.f;
rect.position.y = 0.5f - rect.size.y / 2.f;