Fix the magnification range of the tessellation test
This commit is contained in:
parent
985e569542
commit
0db56dc9f1
|
|
@ -178,7 +178,7 @@ impl crate::View for TessellationTest {
|
||||||
ui.add(
|
ui.add(
|
||||||
egui::DragValue::new(magnification_pixel_size)
|
egui::DragValue::new(magnification_pixel_size)
|
||||||
.speed(0.5)
|
.speed(0.5)
|
||||||
.range(0.0..=64.0),
|
.range(1.0..=32.0),
|
||||||
);
|
);
|
||||||
ui.end_row();
|
ui.end_row();
|
||||||
|
|
||||||
|
|
@ -244,6 +244,7 @@ impl crate::View for TessellationTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if 3.0 < magnification_pixel_size {
|
||||||
// Draw pixel centers:
|
// Draw pixel centers:
|
||||||
let pixel_radius = 0.75;
|
let pixel_radius = 0.75;
|
||||||
let pixel_color = Color32::GRAY;
|
let pixel_color = Color32::GRAY;
|
||||||
|
|
@ -266,6 +267,7 @@ impl crate::View for TessellationTest {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue