summaryrefslogtreecommitdiff
path: root/resources/shaders/texture.vert
diff options
context:
space:
mode:
authorSebastian Park <SebPark03@gmail.com>2024-04-23 12:06:00 -0400
committerSebastian Park <SebPark03@gmail.com>2024-04-23 12:06:00 -0400
commit12ec81fd1624e9b06e03d9a53a1873f63fe99c3b (patch)
treedb528688bbf888cf0f147a698d061f5c7ae89560 /resources/shaders/texture.vert
parenta556b45abf18f1bd509daaf63b66b7d55e9fd291 (diff)
parent6a5806b82c44a2cae481a6015d1a0f390e4b8445 (diff)
Merge branch 'shaders'
Diffstat (limited to 'resources/shaders/texture.vert')
-rw-r--r--resources/shaders/texture.vert15
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);
+}