summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure.ac1
-rw-r--r--data/graphics/shaders/CMakeLists.txt6
-rw-r--r--data/graphics/shaders/Makefile.am9
-rw-r--r--data/graphics/shaders/simple_frag.glsl7
-rw-r--r--data/graphics/shaders/simple_vertex.glsl6
5 files changed, 29 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 978a113a1..3756fd320 100755
--- a/configure.ac
+++ b/configure.ac
@@ -370,6 +370,7 @@ data/graphics/Makefile
data/graphics/flags/Makefile
data/graphics/gui/Makefile
data/graphics/images/Makefile
+data/graphics/shaders/Makefile
data/graphics/sprites/Makefile
data/sfx/Makefile
data/sfx/system/Makefile
diff --git a/data/graphics/shaders/CMakeLists.txt b/data/graphics/shaders/CMakeLists.txt
new file mode 100644
index 000000000..0dc6cc124
--- /dev/null
+++ b/data/graphics/shaders/CMakeLists.txt
@@ -0,0 +1,6 @@
+SET(FILES
+ 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
new file mode 100644
index 000000000..db10da9b1
--- /dev/null
+++ b/data/graphics/shaders/Makefile.am
@@ -0,0 +1,9 @@
+shadersdir = $(pkgdatadir)/data/graphics/shaders
+
+shaders_DATA = \
+ simple_frag.glsl \
+ simple_vertex.glsl
+
+EXTRA_DIST = \
+ $(shaders_DATA) \
+ CMakeLists.txt
diff --git a/data/graphics/shaders/simple_frag.glsl b/data/graphics/shaders/simple_frag.glsl
new file mode 100644
index 000000000..87e90246e
--- /dev/null
+++ b/data/graphics/shaders/simple_frag.glsl
@@ -0,0 +1,7 @@
+#version 150 core
+out vec4 outColor;
+uniform vec4 pixelColor;
+void main()
+{
+ outColor = pixelColor;
+}
diff --git a/data/graphics/shaders/simple_vertex.glsl b/data/graphics/shaders/simple_vertex.glsl
new file mode 100644
index 000000000..a26158e65
--- /dev/null
+++ b/data/graphics/shaders/simple_vertex.glsl
@@ -0,0 +1,6 @@
+#version 150 core
+in vec2 position;
+void main()
+{
+ gl_Position = vec4(position, 0.0, 1.0);
+}