Set medium floating precision to shaders
authorfrd
Tue, 03 May 2016 00:55:46 -0400
changeset 11800 2028bd2a6c5b
parent 11799 64bbe89e59d6
child 11801 50a462b9454a
Set medium floating precision to shaders Helps with WebGL compatibility.
share/hedgewars/Data/Shaders/default.fs
share/hedgewars/Data/Shaders/default.vs
share/hedgewars/Data/Shaders/water.fs
share/hedgewars/Data/Shaders/water.vs
--- 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;