From e7f05704102d204ce73f97bca5f62312adcd1c2b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 8 Jun 2014 17:26:01 +0300 Subject: Add simple shaders files. --- data/graphics/shaders/CMakeLists.txt | 6 ++++++ data/graphics/shaders/Makefile.am | 9 +++++++++ data/graphics/shaders/simple_frag.glsl | 7 +++++++ data/graphics/shaders/simple_vertex.glsl | 6 ++++++ 4 files changed, 28 insertions(+) create mode 100644 data/graphics/shaders/CMakeLists.txt create mode 100644 data/graphics/shaders/Makefile.am create mode 100644 data/graphics/shaders/simple_frag.glsl create 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 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); +} -- cgit v1.2.3-70-g09d2