*/
pub fn program(display: &glium::Display) -> glium::Program {
- return 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,
perspective: camera.get_perspective(),
};
- mandel(&display, &mut frame, &program, &uniforms, bounds, z0);
+ mandel(display, &mut frame, program, &uniforms, bounds, z0);
}
}