/Resources/shaders/basicTexture.vsh
http://github.com/tartiflop/ojgl · Vertex Shader File · 12 lines · 9 code · 3 blank · 0 comment · 0 complexity · 9eb8b86ea074516314d8b8a0eab13847 MD5 · raw file
- uniform mat4 u_mvMatrix;
- uniform mat4 u_mvpMatrix;
- attribute vec4 a_vertex;
- attribute vec2 a_texCoord;
- varying vec2 v_texCoord;
- void main(void) {
- v_texCoord = a_texCoord;
- gl_Position = u_mvpMatrix * a_vertex;
- }