X-Git-Url: https://codewiz.org/gitweb?p=mandelwow.git;a=blobdiff_plain;f=mandelwow.rs;h=e5c883ac8c7342564f1e49cf17cfd6f82f93f7fd;hp=8e759ef8013a1efc8943e0e78853063dca79a5fe;hb=0c901a4f10a0579623da467ebdf018796c800aca;hpb=aa2fc560e10dcd57f0d787d2ce55c97f5907c215 diff --git a/mandelwow.rs b/mandelwow.rs index 8e759ef..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, + 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); } }