Move GLSL shaders to external files and use include_str!() to load them.
[mandelwow.git] / solid.vert
diff --git a/solid.vert b/solid.vert
new file mode 100644 (file)
index 0000000..aaacaa9
--- /dev/null
@@ -0,0 +1,10 @@
+#version 140
+in vec3 position;
+uniform mat4 perspective;
+uniform mat4 view;
+uniform mat4 model;
+
+void main() {
+    mat4 modelview = view * model;
+    gl_Position = perspective * modelview * vec4(position, 1.0);
+}