summaryrefslogtreecommitdiff
path: root/data/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'data/graphics')
-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
4 files changed, 28 insertions, 0 deletions
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);
+}