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{ var shaders = map[shaderId]string{
shaderVertexModelview: ` shaderVertexModelview: `
#if defined(GL_ES) uniform mat4 projection_matrix;
precision highp float; attribute vec2 vertex;
#else attribute vec2 tex_coord;
#define lowp attribute vec4 geo_matrix_body;
#define mediump attribute vec2 geo_matrix_translation;
#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;
varying vec2 vertex_out_tex_coord; varying vec2 vertex_out_tex_coord;
void main(void) { void main(void) {