From aa3f63fd497558a02feb3ddbc44f31eac091f39b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Oct 2017 22:14:45 +0300 Subject: Remove most unused files. --- data/graphics/shaders/CMakeLists.txt | 8 -------- data/graphics/shaders/Makefile.am | 11 ----------- data/graphics/shaders/gles2_frag.glsl | 20 -------------------- data/graphics/shaders/gles2_vertex.glsl | 12 ------------ data/graphics/shaders/simple_frag.glsl | 19 ------------------- data/graphics/shaders/simple_vertex.glsl | 9 --------- 6 files changed, 79 deletions(-) delete mode 100644 data/graphics/shaders/CMakeLists.txt delete mode 100644 data/graphics/shaders/Makefile.am delete mode 100644 data/graphics/shaders/gles2_frag.glsl delete mode 100644 data/graphics/shaders/gles2_vertex.glsl delete mode 100644 data/graphics/shaders/simple_frag.glsl delete mode 100644 data/graphics/shaders/simple_vertex.glsl (limited to 'data/graphics/shaders') diff --git a/data/graphics/shaders/CMakeLists.txt b/data/graphics/shaders/CMakeLists.txt deleted file mode 100644 index 1ae389d50..000000000 --- a/data/graphics/shaders/CMakeLists.txt +++ /dev/null @@ -1,8 +0,0 @@ -SET(FILES - gles2_frag.glsl - gles2_vertex.glsl - simple_frag.glsl - simple_vertex.glsl - ) - -INSTALL(FILES ${FILES} DESTINATION ${DATA_DIR}/graphics/shaders) diff --git a/data/graphics/shaders/Makefile.am b/data/graphics/shaders/Makefile.am deleted file mode 100644 index 543c8677b..000000000 --- a/data/graphics/shaders/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ -shadersdir = $(pkgdatadir)/data/graphics/shaders - -shaders_DATA = \ - gles2_frag.glsl \ - gles2_vertex.glsl \ - simple_frag.glsl \ - simple_vertex.glsl - -EXTRA_DIST = \ - $(shaders_DATA) \ - CMakeLists.txt diff --git a/data/graphics/shaders/gles2_frag.glsl b/data/graphics/shaders/gles2_frag.glsl deleted file mode 100644 index ab642fcf6..000000000 --- a/data/graphics/shaders/gles2_frag.glsl +++ /dev/null @@ -1,20 +0,0 @@ -#version 100 -precision mediump float; - -uniform sampler2D tex; -uniform vec4 color; -uniform float drawType; -uniform float alpha; -varying mediump vec2 Texcoord; - -void main() -{ - if (drawType >= 0.1) - { - gl_FragColor = texture2D(tex, Texcoord) * vec4(1.0, 1.0, 1.0, alpha); - } - else - { - gl_FragColor = color; - } -} diff --git a/data/graphics/shaders/gles2_vertex.glsl b/data/graphics/shaders/gles2_vertex.glsl deleted file mode 100644 index 83bd7f42d..000000000 --- a/data/graphics/shaders/gles2_vertex.glsl +++ /dev/null @@ -1,12 +0,0 @@ -#version 100 - -attribute vec4 position; -varying vec2 Texcoord; -uniform vec2 screen; -uniform vec2 textureSize; - -void main() -{ - Texcoord = vec2(position.z / textureSize.x, position.w / textureSize.y); - gl_Position = vec4(position.x / screen.x - 1.0, 1.0 - position.y / screen.y, 0.0, 1.0); -} diff --git a/data/graphics/shaders/simple_frag.glsl b/data/graphics/shaders/simple_frag.glsl deleted file mode 100644 index 2c149351a..000000000 --- a/data/graphics/shaders/simple_frag.glsl +++ /dev/null @@ -1,19 +0,0 @@ -#version 130 -in vec2 Texcoord; -out vec4 outColor; -uniform sampler2D tex; -uniform vec4 color; -uniform float drawType; -uniform float alpha; - -void main() -{ - if (drawType >= 0.1) - { - outColor = texelFetch(tex, ivec2(Texcoord.x, Texcoord.y), 0) * vec4(1.0, 1.0, 1.0, alpha); - } - else - { - outColor = color; - } -} diff --git a/data/graphics/shaders/simple_vertex.glsl b/data/graphics/shaders/simple_vertex.glsl deleted file mode 100644 index 317d41c6d..000000000 --- a/data/graphics/shaders/simple_vertex.glsl +++ /dev/null @@ -1,9 +0,0 @@ -#version 130 -in ivec4 position; -out vec2 Texcoord; -uniform vec2 screen; -void main() -{ - Texcoord = vec2(position.z, position.w); - gl_Position = vec4(position.x / screen.x - 1, 1 - position.y / screen.y, 0.0, 1.0); -} -- cgit v1.2.3-70-g09d2