mirror of https://github.com/AxioDL/metaforce.git
Ensure correct Vulkan coordinate system for CTexturedQuadFilter
This commit is contained in:
parent
31eb3e5223
commit
f5ac582541
|
@ -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 =
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue