summaryrefslogtreecommitdiff
path: root/base_shaders/vertex.glsl
diff options
context:
space:
mode:
authorrgraef <romangraef@gmail.com>2021-04-22 13:26:56 +0200
committerrgraef <romangraef@gmail.com>2021-04-22 13:26:56 +0200
commit2b597ca9617fd424d0785afae15b9f7adc78ef70 (patch)
tree74bf5a12d86517641c95e1c720649be35102635f /base_shaders/vertex.glsl
parenta165c0da2484776124bf895a810076c8acf94368 (diff)
downloadtxtgameengine-2b597ca9617fd424d0785afae15b9f7adc78ef70.tar.gz
txtgameengine-2b597ca9617fd424d0785afae15b9f7adc78ef70.tar.bz2
txtgameengine-2b597ca9617fd424d0785afae15b9f7adc78ef70.zip
working triangles
Diffstat (limited to 'base_shaders/vertex.glsl')
-rw-r--r--base_shaders/vertex.glsl8
1 files changed, 8 insertions, 0 deletions
diff --git a/base_shaders/vertex.glsl b/base_shaders/vertex.glsl
new file mode 100644
index 0000000..1e02417
--- /dev/null
+++ b/base_shaders/vertex.glsl
@@ -0,0 +1,8 @@
+#version 330 core
+
+layout(location = 0) in vec3 vertexPosition_modelspace;
+
+void main() {
+ gl_Position.xyz = vertexPosition_modelspace;
+ gl_Position.w = 1.0;
+}