graphics: No need to specify precision on vertex shaders (highp is default)

This commit is contained in:
Hajime Hoshi 2017-07-29 02:57:56 +09:00
parent d46d9ac7c2
commit 84a7787ac9

View File

@ -27,19 +27,11 @@ func shader(id shaderId) string {
var shaders = map[shaderId]string{
shaderVertexModelview: `
#if defined(GL_ES)
precision highp float;
#else
#define lowp
#define mediump
#define highp
#endif
uniform highp mat4 projection_matrix;
attribute highp vec2 vertex;
attribute highp vec2 tex_coord;
attribute highp vec4 geo_matrix_body;
attribute highp vec2 geo_matrix_translation;
uniform mat4 projection_matrix;
attribute vec2 vertex;
attribute vec2 tex_coord;
attribute vec4 geo_matrix_body;
attribute vec2 geo_matrix_translation;
varying vec2 vertex_out_tex_coord;
void main(void) {