aboutsummaryrefslogtreecommitdiffstats
path: root/examples/shaders/rect.frag
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shaders/rect.frag')
-rw-r--r--examples/shaders/rect.frag8
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/shaders/rect.frag b/examples/shaders/rect.frag
index 9cee53b..17290bd 100644
--- a/examples/shaders/rect.frag
+++ b/examples/shaders/rect.frag
@@ -11,9 +11,11 @@
specified precisely in pixels to draw sharp lines. The border width is just
hardcoded, but could be made a uniform or vertex attribute easily enough. */
-INTER(location = 0) noperspective in vec2 f_uv;
-INTER(location = 1) noperspective in vec2 f_size;
-INTER(location = 2) noperspective in vec4 f_fillColor;
+precision mediump float;
+
+INTER(location = 0) NOPERSPECTIVE in vec2 f_uv;
+INTER(location = 1) NOPERSPECTIVE in vec2 f_size;
+INTER(location = 2) NOPERSPECTIVE in vec4 f_fillColor;
layout(location = 0) out vec4 FragColor;