renderer-tutorial/res/shaders/vert.shader
2020-05-22 23:49:17 +02:00

13 lines
222 B
GLSL

#version 330 core
layout(location = 0) in vec3 position;
layout(location = 1) in vec2 texCoord;
out vec2 v_texCoord;
void main()
{
gl_Position = vec4(position, 1);
v_texCoord = vec2(texCoord.x, 1.0 - texCoord.y);
}