Explorar el Código

Use high precision for all shaders

medium precision causes visible seams between tiles on some drivers.
Johannes Hofmann hace 7 años
padre
commit
63531915dd

+ 1
- 1
shader/atmos.frag Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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 Ver fichero

@@ -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;