14 lines
251 B
GLSL
14 lines
251 B
GLSL
uniform highp mat4 matrix;
|
|
uniform lowp vec2 aspect;
|
|
|
|
attribute highp vec4 in_vertex;
|
|
attribute mediump vec2 in_coord;
|
|
|
|
varying mediump vec2 coord;
|
|
|
|
void main()
|
|
{
|
|
coord = ( -1.0 + 2.0 * in_coord ) * aspect;
|
|
gl_Position = matrix * in_vertex;
|
|
}
|