From bf491f71f9081608b44508a0f5ded986203f7dda Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Wed, 10 Aug 2022 15:43:16 +0100 Subject: [PATCH] Simplify blit helper shader vertex order --- .../main/cpp/skyline/gpu/shaders/helper_shaders.cpp | 2 +- app/src/main/shaders/blit.vert | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/cpp/skyline/gpu/shaders/helper_shaders.cpp b/app/src/main/cpp/skyline/gpu/shaders/helper_shaders.cpp index 1960480e..992d74c5 100644 --- a/app/src/main/cpp/skyline/gpu/shaders/helper_shaders.cpp +++ b/app/src/main/cpp/skyline/gpu/shaders/helper_shaders.cpp @@ -58,7 +58,7 @@ namespace skyline::gpu { .polygonMode = vk::PolygonMode::eFill, .lineWidth = 1.0f, .cullMode = vk::CullModeFlagBits::eNone, - .frontFace = vk::FrontFace::eCounterClockwise, + .frontFace = vk::FrontFace::eClockwise, .depthBiasEnable = false }, { .provokingVertexMode = vk::ProvokingVertexModeEXT::eFirstVertex diff --git a/app/src/main/shaders/blit.vert b/app/src/main/shaders/blit.vert index fce741cb..0199cea9 100644 --- a/app/src/main/shaders/blit.vert +++ b/app/src/main/shaders/blit.vert @@ -9,12 +9,12 @@ layout (push_constant) uniform constants { void main() { const vec2 lut[6] = vec2[6]( - vec2(1, 0), - vec2(1, 1), - vec2(0, 1), - vec2(0, 1), vec2(0, 0), - vec2(1, 0) + vec2(0, 1), + vec2(1, 1), + vec2(1, 1), + vec2(1, 0), + vec2(0, 0) ); dstPosition = lut[gl_VertexIndex];