ソースを参照

Use high precision for all shaders

medium precision causes visible seams between tiles on some drivers.
Johannes Hofmann 7 年 前
コミット
63531915dd
共有9 個のファイルを変更した9 個の追加9 個の削除を含む
  1. 1
    1
      shader/atmos.frag
  2. 1
    1
      shader/atmos.vert
  3. 1
    1
      shader/map.frag
  4. 1
    1
      shader/map.vert
  5. 1
    1
      shader/map_tile_border.frag
  6. 1
    1
      shader/marker.frag
  7. 1
    1
      shader/marker.vert
  8. 1
    1
      shader/ortho_tile.frag
  9. 1
    1
      shader/ortho_tile.vert

+ 1
- 1
shader/atmos.frag ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

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