summary refs log tree commit diff
path: root/src/shaders
diff options
context:
space:
mode:
authoriurii plugatarov <[email protected]>2024-08-07 19:28:51 +0200
committeriurii plugatarov <[email protected]>2024-08-07 19:28:51 +0200
commit6bea407754e42bd73ad25b3484567226e292eacc (patch)
treecd41343cc8742c3e802901abf8865ced1a7128a9 /src/shaders
downloadogl-6bea407754e42bd73ad25b3484567226e292eacc.tar.gz
init
Diffstat (limited to '')
-rw-r--r--src/shaders/triangle.frag.glsl6
-rw-r--r--src/shaders/triangle.vert.glsl6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/shaders/triangle.frag.glsl b/src/shaders/triangle.frag.glsl
new file mode 100644
index 0000000..664c399
--- /dev/null
+++ b/src/shaders/triangle.frag.glsl
@@ -0,0 +1,6 @@
+#version 330 core
+out vec4 FragColor;
+void main()
+{
+    FragColor = vec4(1.0, 0.0, 0.0, 1.0);
+}
diff --git a/src/shaders/triangle.vert.glsl b/src/shaders/triangle.vert.glsl
new file mode 100644
index 0000000..dbef13e
--- /dev/null
+++ b/src/shaders/triangle.vert.glsl
@@ -0,0 +1,6 @@
+#version 330 core
+layout (location = 0) in vec2 aPos;
+void main()
+{
+    gl_Position = vec4(aPos.x, aPos.y, 0.0, 1.0);
+}