1
0
mirror of https://github.com/artizirk/wdisplays.git synced 2024-06-15 07:00:12 +03:00
This commit is contained in:
Jason Francis 2019-10-26 16:55:34 -04:00
parent c0cd8e4ac0
commit 63380ae59d

View File

@ -75,6 +75,7 @@ struct wd_gl_data {
};
static const char *color_vertex_shader_src = "\
precision mediump float;\n\
attribute vec2 position;\n\
attribute vec4 color;\n\
varying vec4 color_out;\n\
@ -86,12 +87,14 @@ void main(void) {\n\
}";
static const char *color_fragment_shader_src = "\
precision mediump float;\n\
varying vec4 color_out;\n\
void main(void) {\n\
gl_FragColor = color_out;\n\
}";
static const char *texture_vertex_shader_src = "\
precision mediump float;\n\
attribute vec2 position;\n\
attribute vec2 uv;\n\
varying vec2 uv_out;\n\
@ -103,6 +106,7 @@ void main(void) {\n\
}";
static const char *texture_fragment_shader_src = "\
precision mediump float;\n\
varying vec2 uv_out;\n\
uniform sampler2D texture;\n\
uniform mat4 color_transform;\n\