13 lines
259 B
Plaintext
13 lines
259 B
Plaintext
|
#version 300 es
|
||
|
precision mediump float;
|
||
|
layout (location = 0) in vec4 vertex; // <vec2 pos, vec2 tex>
|
||
|
out vec2 TexCoords;
|
||
|
|
||
|
uniform mat4 transformation;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
gl_Position = transformation * vec4(vertex.xy, 0.0, 1.0);
|
||
|
TexCoords = vertex.zw;
|
||
|
}
|