aboutsummaryrefslogtreecommitdiff
path: root/assets/.stationary/Shaders/SimpleLine.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'assets/.stationary/Shaders/SimpleLine.glsl')
-rw-r--r--assets/.stationary/Shaders/SimpleLine.glsl20
1 files changed, 20 insertions, 0 deletions
diff --git a/assets/.stationary/Shaders/SimpleLine.glsl b/assets/.stationary/Shaders/SimpleLine.glsl
new file mode 100644
index 0000000..60c23d4
--- /dev/null
+++ b/assets/.stationary/Shaders/SimpleLine.glsl
@@ -0,0 +1,20 @@
+#type vertex
+#version 330 core
+
+layout(location = 0) in vec3 pos;
+
+// Autofill uniforms
+uniform mat4 transformation;
+
+void main() {
+ gl_Position = transformation * vec4(pos, 1.0);
+}
+
+#type fragment
+#version 330 core
+
+out vec4 fragColor;
+
+void main() {
+ fragColor = vec4(1.0, 1.0, 1.0, 1.0);
+}