aboutsummaryrefslogtreecommitdiff
path: root/shaders
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-02-22 08:55:48 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-18 15:22:10 +0100
commit9ab59b76c0ece5e261c0152af3f830f48532e103 (patch)
treeae66d456fa58d4f98ea74759bcc2bb9e2f50efae /shaders
parentf2f8ccc1c24ab372ffe5e932780eeb1c49a4d277 (diff)
Fix rendering of character
Diffstat (limited to 'shaders')
-rw-r--r--shaders/fragment_no_texture.frag7
-rw-r--r--shaders/vertex_no_texture.vert11
2 files changed, 18 insertions, 0 deletions
diff --git a/shaders/fragment_no_texture.frag b/shaders/fragment_no_texture.frag
new file mode 100644
index 0000000..f6d7bf1
--- /dev/null
+++ b/shaders/fragment_no_texture.frag
@@ -0,0 +1,7 @@
+#version 330 core
+
+out vec4 out_color;
+
+void main() {
+ out_color = vec4(1.0, 1.0, 1.0, 1.0);
+} \ No newline at end of file
diff --git a/shaders/vertex_no_texture.vert b/shaders/vertex_no_texture.vert
new file mode 100644
index 0000000..a44217b
--- /dev/null
+++ b/shaders/vertex_no_texture.vert
@@ -0,0 +1,11 @@
+#version 330 core
+
+in vec3 position;
+
+uniform mat4 proj;
+uniform mat4 view;
+uniform mat4 model;
+
+void main() {
+ gl_Position = proj * view * model * vec4(position, 1.0);
+} \ No newline at end of file