rhythmbullet/old/android/assets/shaders/mesh.vsh

13 lines
259 B
V Shell
Raw Normal View History

2018-09-11 05:05:34 +00:00
attribute vec2 a_position;
attribute vec4 a_color;
//our camera matrix
uniform mat4 u_projTrans;
//send the color out to the fragment shader
varying vec4 vColor;
void main() {
vColor = a_color;
gl_Position = u_projTrans * vec4(a_position.xy, 0.0, 1.0);
}