shader does work at least...

This commit is contained in:
minjaesong
2017-07-04 22:04:07 +09:00
parent 2ac7efeaac
commit bba2f3ce20
3 changed files with 18 additions and 70 deletions

View File

@@ -1,7 +1,14 @@
precision mediump float;
attribute vec4 a_position;
attribute vec4 a_color;
attribute vec2 a_texCoord0;
attribute vec2 position;
uniform mat4 u_projTrans;
varying vec4 v_color;
varying vec2 v_texCoords;
void main() {
gl_Position = vec4(position, 1, 1);
v_color = a_color;
v_texCoords = a_texCoord0;
gl_Position = u_projTrans * a_position;
}