Browse Source

Use high precision for all shaders

medium precision causes visible seams between tiles on some drivers.
Johannes Hofmann 7 years ago
parent
commit
63531915dd

+ 1
- 1
shader/atmos.frag View File

1
 #version 100
1
 #version 100
2
-precision mediump float;
2
+precision highp float;
3
 
3
 
4
 varying vec2 v_pos;
4
 varying vec2 v_pos;
5
 
5
 

+ 1
- 1
shader/atmos.vert View File

1
 #version 100
1
 #version 100
2
-precision mediump float;
2
+precision highp float;
3
 
3
 
4
 attribute vec2 position;
4
 attribute vec2 position;
5
 
5
 

+ 1
- 1
shader/map.frag View File

1
 #version 100
1
 #version 100
2
-precision mediump float;
2
+precision highp float;
3
 
3
 
4
 varying vec2 v_tex;
4
 varying vec2 v_tex;
5
 varying vec4 v_tex_minmax;
5
 varying vec4 v_tex_minmax;

+ 1
- 1
shader/map.vert View File

1
 #version 100
1
 #version 100
2
-precision mediump float;
2
+precision highp float;
3
 
3
 
4
 attribute vec2 position;
4
 attribute vec2 position;
5
 attribute vec2 tex_coord;
5
 attribute vec2 tex_coord;

+ 1
- 1
shader/map_tile_border.frag View File

1
 #version 100
1
 #version 100
2
-precision mediump float;
2
+precision highp float;
3
 
3
 
4
 varying vec2 v_tex;
4
 varying vec2 v_tex;
5
 varying vec4 v_tex_minmax;
5
 varying vec4 v_tex_minmax;

+ 1
- 1
shader/marker.frag View File

1
 #version 100
1
 #version 100
2
-precision mediump float;
2
+precision highp float;
3
 
3
 
4
 varying vec2 v_tex;
4
 varying vec2 v_tex;
5
 uniform sampler2D tex;
5
 uniform sampler2D tex;

+ 1
- 1
shader/marker.vert View File

1
 #version 100
1
 #version 100
2
-precision mediump float;
2
+precision highp float;
3
 
3
 
4
 attribute vec2 position;
4
 attribute vec2 position;
5
 attribute vec2 tex_coord;
5
 attribute vec2 tex_coord;

+ 1
- 1
shader/ortho_tile.frag View File

1
 #version 100
1
 #version 100
2
-precision mediump float;
2
+precision highp float;
3
 
3
 
4
 varying vec2 v_tex;
4
 varying vec2 v_tex;
5
 varying vec4 v_tex_minmax;
5
 varying vec4 v_tex_minmax;

+ 1
- 1
shader/ortho_tile.vert View File

1
 #version 100
1
 #version 100
2
-precision mediump float;
2
+precision highp float;
3
 
3
 
4
 attribute vec3 position;
4
 attribute vec3 position;
5
 attribute vec2 tex_coord;
5
 attribute vec2 tex_coord;