summaryrefslogtreecommitdiffstats
path: root/src/core/render/shaders/basic.vert
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/render/shaders/basic.vert')
-rwxr-xr-xsrc/core/render/shaders/basic.vert15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/render/shaders/basic.vert b/src/core/render/shaders/basic.vert
new file mode 100755
index 000000000..58cc0e7fd
--- /dev/null
+++ b/src/core/render/shaders/basic.vert
@@ -0,0 +1,15 @@
+#version 330
+
+in vec3 vertexPosition;
+in vec3 vertexColor;
+
+out vec3 color;
+
+void main()
+{
+ // Pass through the color to the fragment shader
+ color = vertexColor;
+
+ // Calculate the vertex position
+ gl_Position = vec4( vertexPosition, 1.0 );
+}