summaryrefslogtreecommitdiffstats
path: root/Tests/TestApp/assets/Shaders/TextureIntTestGL.psh
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2019-12-25 03:23:32 +0000
committerassiduous <assiduous@diligentgraphics.com>2019-12-25 03:23:32 +0000
commit040e4cb7e454d532d249d2a5de6f2aba0c902baa (patch)
treec89a3a009e2d145c3c3cfdb053ad7392eedf6d98 /Tests/TestApp/assets/Shaders/TextureIntTestGL.psh
parentAdded codacy bages (diff)
downloadDiligentEngine-040e4cb7e454d532d249d2a5de6f2aba0c902baa.tar.gz
DiligentEngine-040e4cb7e454d532d249d2a5de6f2aba0c902baa.zip
Updated submodules; removed tests folder (tests are now part of every submodule)
Diffstat (limited to 'Tests/TestApp/assets/Shaders/TextureIntTestGL.psh')
-rw-r--r--Tests/TestApp/assets/Shaders/TextureIntTestGL.psh33
1 files changed, 0 insertions, 33 deletions
diff --git a/Tests/TestApp/assets/Shaders/TextureIntTestGL.psh b/Tests/TestApp/assets/Shaders/TextureIntTestGL.psh
deleted file mode 100644
index 23c3532..0000000
--- a/Tests/TestApp/assets/Shaders/TextureIntTestGL.psh
+++ /dev/null
@@ -1,33 +0,0 @@
-// Fragment Shader – file "minimal.frag"
-
-layout(location = 1)in vec2 in_UV;
-uniform SAMPLER_TYPE g_tex2DTest;
-
-layout(location = 0) out vec4 out_Color;
-
-void main(void)
-{
- vec2 TexSize;
-
- TexSize = vec2(textureSize(g_tex2DTest, 0));
- vec4 texel0 = vec4(texelFetch(g_tex2DTest, ivec2(in_UV*TexSize), 0));
-
- TexSize = vec2(textureSize(g_tex2DTest, 2));
- vec4 texel1 = vec4(texelFetch(g_tex2DTest, ivec2(in_UV*TexSize), 2));
-
- TexSize = vec2(textureSize(g_tex2DTest, 4));
- vec4 texel2 = vec4(texelFetch(g_tex2DTest, ivec2(in_UV*TexSize), 4));
-
- TexSize = vec2(textureSize(g_tex2DTest, 5));
- vec4 texel3 = vec4(texelFetch(g_tex2DTest, ivec2(in_UV*TexSize), 5));
-
- if( in_UV.x < 0.5 && in_UV.y < 0.5 )
- out_Color = texel0 / 127.f;
- else if( in_UV.x > 0.5 && in_UV.y < 0.5 )
- out_Color = texel1 / 127.f;
- else if( in_UV.x < 0.5 && in_UV.y > 0.5 )
- out_Color = texel2 / 127.f;
- else
- out_Color = texel3 / 127.f;
-}
-