Load shaders to shaders/
[mandelwow.git] / mandelwow.rs
index e5c883ac8c7342564f1e49cf17cfd6f82f93f7fd..41f7e5d8cabf569f25e401253ae96f1b87e5e50d 100644 (file)
@@ -29,11 +29,11 @@ fn mand(cx: f32, cy: f32) -> [f32; 3] {
 */
 
 pub fn program(display: &glium::Display) -> glium::Program {
 */
 
 pub fn program(display: &glium::Display) -> glium::Program {
-    program!(display,
-        100 => {
-            vertex: include_str!("mandelwow.vert"),
-            fragment: include_str!("mandelwow.frag"),
-        }).unwrap()
+    Program::from_source(
+            display,
+            include_str!("shaders/mandelwow.vert"),
+            include_str!("shaders/mandelwow.frag"), None)
+        .unwrap()
 }
 
 fn mandel<U>(display: &glium::Display,
 }
 
 fn mandel<U>(display: &glium::Display,