Move shaders and textures into subdirectories.
[mandelwow.git] / shaders / mandelwow.vert
diff --git a/shaders/mandelwow.vert b/shaders/mandelwow.vert
new file mode 100644 (file)
index 0000000..0e67eda
--- /dev/null
@@ -0,0 +1,15 @@
+#version 100
+uniform mat4 perspective;
+uniform mat4 view;
+uniform mat4 model;
+uniform vec2 z0;
+attribute mediump vec3 position;
+varying mediump vec2 c;
+varying mediump vec2 z;
+
+void main() {
+    mat4 modelview = view * model;
+    gl_Position = perspective * modelview * vec4(position, 1.0);
+    c = vec2(position.x, position.y);
+    z = vec2(z0.x, z0.y);
+}