Przeglądaj źródła

Use high precision for all shaders

medium precision causes visible seams between tiles on some drivers.
Johannes Hofmann 7 lat temu
rodzic
commit
63531915dd

+ 1
- 1
shader/atmos.frag Wyświetl plik

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

+ 1
- 1
shader/atmos.vert Wyświetl plik

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

+ 1
- 1
shader/map.frag Wyświetl plik

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

+ 1
- 1
shader/map.vert Wyświetl plik

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

+ 1
- 1
shader/map_tile_border.frag Wyświetl plik

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

+ 1
- 1
shader/marker.frag Wyświetl plik

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

+ 1
- 1
shader/marker.vert Wyświetl plik

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

+ 1
- 1
shader/ortho_tile.frag Wyświetl plik

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

+ 1
- 1
shader/ortho_tile.vert Wyświetl plik

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