summaryrefslogtreecommitdiff
path: root/txtgameengine/builtin_res/shaders/basic
diff options
context:
space:
mode:
Diffstat (limited to 'txtgameengine/builtin_res/shaders/basic')
-rw-r--r--txtgameengine/builtin_res/shaders/basic/fragment.glsl6
-rw-r--r--txtgameengine/builtin_res/shaders/basic/vertex.glsl7
2 files changed, 13 insertions, 0 deletions
diff --git a/txtgameengine/builtin_res/shaders/basic/fragment.glsl b/txtgameengine/builtin_res/shaders/basic/fragment.glsl
new file mode 100644
index 0000000..a9dfa6f
--- /dev/null
+++ b/txtgameengine/builtin_res/shaders/basic/fragment.glsl
@@ -0,0 +1,6 @@
+#version 330 core
+
+out vec4 fragColor;
+void main() {
+ fragColor = vec4(0, 0, 1, 1);
+} \ No newline at end of file
diff --git a/txtgameengine/builtin_res/shaders/basic/vertex.glsl b/txtgameengine/builtin_res/shaders/basic/vertex.glsl
new file mode 100644
index 0000000..92f7c97
--- /dev/null
+++ b/txtgameengine/builtin_res/shaders/basic/vertex.glsl
@@ -0,0 +1,7 @@
+#version 330 core
+
+layout(location = 0) in vec2 vertexPosition_modelspace;
+
+void main() {
+ gl_Position = vec4(vertexPosition_modelspace, 0, 1);
+}