aboutsummaryrefslogtreecommitdiff
path: root/data/shaders/pulsar.vert
diff options
context:
space:
mode:
Diffstat (limited to 'data/shaders/pulsar.vert')
-rw-r--r--data/shaders/pulsar.vert19
1 files changed, 19 insertions, 0 deletions
diff --git a/data/shaders/pulsar.vert b/data/shaders/pulsar.vert
new file mode 100644
index 0000000..50b24da
--- /dev/null
+++ b/data/shaders/pulsar.vert
@@ -0,0 +1,19 @@
+attribute vec3 position;
+attribute vec4 vtxcolor;
+attribute vec2 texcoord;
+attribute vec3 normal;
+
+uniform mat4 ModelViewProjectionMatrix;
+
+varying vec4 Color;
+varying vec2 TextureCoord;
+
+void main(void)
+{
+ Color = vtxcolor;
+ TextureCoord = texcoord;
+
+ // Transform the position to clip coordinates
+ gl_Position = ModelViewProjectionMatrix * vec4(position, 1.0);
+}
+