diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-07-06 19:02:14 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-07-06 19:02:14 +0000 |
| commit | 3f941c5e9ca46792a2044bd7126e7f32d0ca4d30 (patch) | |
| tree | 5e3023c5463eac6163ae632dcd29cbb67b8295c1 /Tests/TestApp | |
| parent | Updated test app (diff) | |
| download | DiligentEngine-3f941c5e9ca46792a2044bd7126e7f32d0ca4d30.tar.gz DiligentEngine-3f941c5e9ca46792a2044bd7126e7f32d0ca4d30.zip | |
Updated Asteroids demo to handle minimized window in Vulkan; updated BlendTexturesPS_GL.glsl
Diffstat (limited to 'Tests/TestApp')
| -rw-r--r-- | Tests/TestApp/assets/Shaders/RTTest/BlendTexturesPS_GL.glsl | 6 |
1 files changed, 5 insertions, 1 deletions
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); |
