diff options
author | Sebastian Park <SebPark03@gmail.com> | 2024-04-23 12:06:00 -0400 |
---|---|---|
committer | Sebastian Park <SebPark03@gmail.com> | 2024-04-23 12:06:00 -0400 |
commit | 12ec81fd1624e9b06e03d9a53a1873f63fe99c3b (patch) | |
tree | db528688bbf888cf0f147a698d061f5c7ae89560 /resources/shaders/texture.vert | |
parent | a556b45abf18f1bd509daaf63b66b7d55e9fd291 (diff) | |
parent | 6a5806b82c44a2cae481a6015d1a0f390e4b8445 (diff) |
Merge branch 'shaders'
Diffstat (limited to 'resources/shaders/texture.vert')
-rw-r--r-- | resources/shaders/texture.vert | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/resources/shaders/texture.vert b/resources/shaders/texture.vert new file mode 100644 index 0000000..c87f366 --- /dev/null +++ b/resources/shaders/texture.vert @@ -0,0 +1,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); +} |