Set medium floating precision to shaders
Helps with WebGL compatibility.
--- a/share/hedgewars/Data/Shaders/default.fs Tue May 03 00:51:33 2016 -0400
+++ b/share/hedgewars/Data/Shaders/default.fs Tue May 03 00:55:46 2016 -0400
@@ -1,3 +1,5 @@
+precision mediump float;
+
uniform sampler2D tex0;
uniform vec4 tint;
uniform bool enableTexture;
--- a/share/hedgewars/Data/Shaders/default.vs Tue May 03 00:51:33 2016 -0400
+++ b/share/hedgewars/Data/Shaders/default.vs Tue May 03 00:55:46 2016 -0400
@@ -1,4 +1,4 @@
-
+precision mediump float;
attribute vec2 vertex;
attribute vec2 texcoord;
--- a/share/hedgewars/Data/Shaders/water.fs Tue May 03 00:51:33 2016 -0400
+++ b/share/hedgewars/Data/Shaders/water.fs Tue May 03 00:55:46 2016 -0400
@@ -1,3 +1,4 @@
+precision mediump float;
varying vec4 vcolor;
--- a/share/hedgewars/Data/Shaders/water.vs Tue May 03 00:51:33 2016 -0400
+++ b/share/hedgewars/Data/Shaders/water.vs Tue May 03 00:55:46 2016 -0400
@@ -1,4 +1,4 @@
-
+precision mediump float;
attribute vec2 vertex;
attribute vec4 color;