high precision float for text shader
This commit is contained in:
parent
041d988d88
commit
175f6d84d1
@ -125,7 +125,7 @@ public final class TextureRenderer {
|
|||||||
private final static double COORD_DIV = 1.0 / GLRenderer.COORD_SCALE;
|
private final static double COORD_DIV = 1.0 / GLRenderer.COORD_SCALE;
|
||||||
|
|
||||||
private final static String textVertexShader = ""
|
private final static String textVertexShader = ""
|
||||||
+ "precision mediump float; "
|
+ "precision highp float;"
|
||||||
+ "attribute vec4 vertex;"
|
+ "attribute vec4 vertex;"
|
||||||
+ "attribute vec2 tex_coord;"
|
+ "attribute vec2 tex_coord;"
|
||||||
+ "uniform mat4 u_mv;"
|
+ "uniform mat4 u_mv;"
|
||||||
@ -149,7 +149,7 @@ public final class TextureRenderer {
|
|||||||
+ "}";
|
+ "}";
|
||||||
|
|
||||||
private final static String textFragmentShader = ""
|
private final static String textFragmentShader = ""
|
||||||
+ "precision mediump float;"
|
+ "precision highp float;"
|
||||||
+ "uniform sampler2D tex;"
|
+ "uniform sampler2D tex;"
|
||||||
+ "varying vec2 tex_c;"
|
+ "varying vec2 tex_c;"
|
||||||
+ "void main() {"
|
+ "void main() {"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user