summaryrefslogtreecommitdiff
path: root/resources/shaders/texture.vert
blob: c87f3668406c6d25f42056bac91f919c7caafb4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#version 330 core

// TASK 15: add a second layout variable representing a UV coordinate
layout (location = 0) in vec3 position;
layout (location = 1) in vec2 uv_raw;

// TASK 16: create an "out" variable representing a UV coordinate
out vec2 uv;

void main() {
    // TASK 16: assign the UV layout variable to the UV "out" variable
    uv = uv_raw;

    gl_Position = vec4(position, 1.0);
}