summaryrefslogtreecommitdiff
path: root/data/graphics/shaders
diff options
context:
space:
mode:
Diffstat (limited to 'data/graphics/shaders')
-rw-r--r--data/graphics/shaders/simple_frag.glsl4
-rw-r--r--data/graphics/shaders/simple_vertex.glsl5
2 files changed, 5 insertions, 4 deletions
diff --git a/data/graphics/shaders/simple_frag.glsl b/data/graphics/shaders/simple_frag.glsl
index 87e90246e..a8687cb68 100644
--- a/data/graphics/shaders/simple_frag.glsl
+++ b/data/graphics/shaders/simple_frag.glsl
@@ -1,7 +1,7 @@
#version 150 core
out vec4 outColor;
-uniform vec4 pixelColor;
+uniform vec4 simpleColor;
void main()
{
- outColor = pixelColor;
+ outColor = simpleColor;
}
diff --git a/data/graphics/shaders/simple_vertex.glsl b/data/graphics/shaders/simple_vertex.glsl
index a26158e65..766fd5fe5 100644
--- a/data/graphics/shaders/simple_vertex.glsl
+++ b/data/graphics/shaders/simple_vertex.glsl
@@ -1,6 +1,7 @@
#version 150 core
-in vec2 position;
+in vec2 simplePos;
+uniform vec2 screen;
void main()
{
- gl_Position = vec4(position, 0.0, 1.0);
+ gl_Position = vec4(simplePos.x / screen.x - 1, 1 - simplePos.y / screen.y, 0.0, 1.0);
}