summaryrefslogtreecommitdiff
path: root/data/graphics/shaders
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-10-10 22:14:45 +0300
committerAndrei Karas <akaras@inbox.ru>2017-10-10 22:15:57 +0300
commitaa3f63fd497558a02feb3ddbc44f31eac091f39b (patch)
tree0e28b9b1f0501dd8be9e1a38db4ec1777fa3fbfa /data/graphics/shaders
parent7c10a6b61e9d06a4ae9cc9f942dfacb6fcfd9d3d (diff)
downloadmanaverse-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.gz
manaverse-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.bz2
manaverse-aa3f63fd497558a02feb3ddbc44f31eac091f39b.tar.xz
manaverse-aa3f63fd497558a02feb3ddbc44f31eac091f39b.zip
Remove most unused files.
Diffstat (limited to 'data/graphics/shaders')
-rw-r--r--data/graphics/shaders/CMakeLists.txt8
-rw-r--r--data/graphics/shaders/Makefile.am11
-rw-r--r--data/graphics/shaders/gles2_frag.glsl20
-rw-r--r--data/graphics/shaders/gles2_vertex.glsl12
-rw-r--r--data/graphics/shaders/simple_frag.glsl19
-rw-r--r--data/graphics/shaders/simple_vertex.glsl9
6 files changed, 0 insertions, 79 deletions
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);
-}