From 1cd2e6eb5c5720be330b09f2106db6e45d677a2a Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 11 Sep 2016 19:29:35 -1000 Subject: [PATCH] Metal shader fixes --- Runtime/Graphics/Shaders/CTexturedQuadFilterHLSL.cpp | 1 + Runtime/Graphics/Shaders/CTexturedQuadFilterMetal.cpp | 1 + hecl | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Runtime/Graphics/Shaders/CTexturedQuadFilterHLSL.cpp b/Runtime/Graphics/Shaders/CTexturedQuadFilterHLSL.cpp index c40004c6d..ce26a47ff 100644 --- a/Runtime/Graphics/Shaders/CTexturedQuadFilterHLSL.cpp +++ b/Runtime/Graphics/Shaders/CTexturedQuadFilterHLSL.cpp @@ -29,6 +29,7 @@ static const char* VS = " VertToFrag vtf;\n" " vtf.color = color;\n" " vtf.uv = v.uvIn.xy;\n" +" vtf.uv.y = -vtf.uv.y;\n" " vtf.position = float4(v.posIn.xyz, 1.0);\n" " return vtf;\n" "}\n"; diff --git a/Runtime/Graphics/Shaders/CTexturedQuadFilterMetal.cpp b/Runtime/Graphics/Shaders/CTexturedQuadFilterMetal.cpp index cf2a28c77..8afa34921 100644 --- a/Runtime/Graphics/Shaders/CTexturedQuadFilterMetal.cpp +++ b/Runtime/Graphics/Shaders/CTexturedQuadFilterMetal.cpp @@ -31,6 +31,7 @@ static const char* VS = " VertToFrag vtf;\n" " vtf.color = tqu.color;\n" " vtf.uv = v.uvIn.xy;\n" +" vtf.uv.y = -vtf.uv.y;\n" " vtf.position = float4(v.posIn.xyz, 1.0);\n" " return vtf;\n" "}\n"; diff --git a/hecl b/hecl index 88fade1d0..83dee4423 160000 --- a/hecl +++ b/hecl @@ -1 +1 @@ -Subproject commit 88fade1d0df7b34a38e9415adbb04a7eaf838f42 +Subproject commit 83dee4423b5d4c5906357d63e90bb70c8230e8bd