renderer-tutorial/res/shaders/vert.shader

13 lines
222 B
Plaintext
Raw Normal View History

2020-05-17 08:59:15 +00:00
#version 330 core
2020-05-22 14:16:06 +00:00
layout(location = 0) in vec3 position;
layout(location = 1) in vec2 texCoord;
out vec2 v_texCoord;
2020-05-17 08:59:15 +00:00
void main()
{
2020-05-22 21:48:40 +00:00
gl_Position = vec4(position, 1);
v_texCoord = vec2(texCoord.x, 1.0 - texCoord.y);
2020-05-17 08:59:15 +00:00
}