summaryrefslogtreecommitdiff
path: root/vk-asylum/triangle_vs.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'vk-asylum/triangle_vs.glsl')
-rw-r--r--vk-asylum/triangle_vs.glsl13
1 files changed, 13 insertions, 0 deletions
diff --git a/vk-asylum/triangle_vs.glsl b/vk-asylum/triangle_vs.glsl
new file mode 100644
index 0000000..3d87f3e
--- /dev/null
+++ b/vk-asylum/triangle_vs.glsl
@@ -0,0 +1,13 @@
+#version 450
+
+layout (location = 0) in vec3 v_p;
+layout (location = 1) in vec3 v_c;
+
+layout (location = 0) out vec3 f_c;
+
+void main()
+{
+ gl_Position = vec4(v_p, 1.0f);
+ f_c = v_c;
+}
+