X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=mandelwow.rs;h=e5c883ac8c7342564f1e49cf17cfd6f82f93f7fd;hb=7babb28c6782e473dd4302c930880cb147f0ceb8;hp=d3b86e6ee1aa0e49779386826dfee6797fc32bc9;hpb=1124bb2dc1b8381bf4bfc437ab1689ec1b30d99b;p=mandelwow.git diff --git a/mandelwow.rs b/mandelwow.rs index d3b86e6..e5c883a 100644 --- a/mandelwow.rs +++ b/mandelwow.rs @@ -29,11 +29,11 @@ fn mand(cx: f32, cy: f32) -> [f32; 3] { */ pub fn program(display: &glium::Display) -> glium::Program { - return program!(display, - 140 => { + program!(display, + 100 => { vertex: include_str!("mandelwow.vert"), fragment: include_str!("mandelwow.frag"), - }).unwrap(); + }).unwrap() } fn mandel(display: &glium::Display, @@ -129,6 +129,6 @@ pub fn draw(display: &glium::Display, perspective: camera.get_perspective(), }; - mandel(&display, &mut frame, &program, &uniforms, bounds, z0); + mandel(display, &mut frame, program, &uniforms, bounds, z0); } }