Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 282 Bytes
//incoming Position attribute from our SpriteBatch
attribute vec2 Position;
//the transformation matrix of our SpriteBatch
uniform mat4 u_projView;
void main() {
//transform our 2D screen space position into 3D world space
gl_Position = u_projView * vec4(Position, 0.0, 1.0);
}