Files
DarkRP2D/shaders/vert.shader
2018-05-07 16:58:15 +02:00

15 lines
255 B
GLSL

#version 300 es
layout (location = 0) in vec2 aPos;
layout (location = 1) in vec2 texCoord;
uniform mat4 projection;
uniform mat4 view;
out vec2 TexCoord;
void main() {
gl_Position = projection * view * vec4(aPos.xy,0.0,1.0);
TexCoord = texCoord;
}