From 3f941c5e9ca46792a2044bd7126e7f32d0ca4d30 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 6 Jul 2018 12:02:14 -0700 Subject: Updated Asteroids demo to handle minimized window in Vulkan; updated BlendTexturesPS_GL.glsl --- Tests/TestApp/assets/Shaders/RTTest/BlendTexturesPS_GL.glsl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Tests/TestApp') diff --git a/Tests/TestApp/assets/Shaders/RTTest/BlendTexturesPS_GL.glsl b/Tests/TestApp/assets/Shaders/RTTest/BlendTexturesPS_GL.glsl index 2139000..726dfee 100644 --- a/Tests/TestApp/assets/Shaders/RTTest/BlendTexturesPS_GL.glsl +++ b/Tests/TestApp/assets/Shaders/RTTest/BlendTexturesPS_GL.glsl @@ -9,7 +9,11 @@ layout(location = 0) out vec4 out_Color; void main() { - vec2 UV = vec2( ex_UV.x, 1.0 - ex_UV.y ); + vec2 UV = vec2( ex_UV.x, ex_UV.y ); +#ifndef TARGET_API_VULKAN + UV.y = 1.0 - UV.y; +#endif + vec4 Col0 = texture(g_tex2DTest0, UV); vec4 Col1 = texture(g_tex2DTest1, UV); vec4 Col2 = texture(g_tex2DTest2, UV); -- cgit v1.2.3