Fix picking example
@@ -70,7 +70,9 @@ pub async fn run(screenshot: Option<std::path::PathBuf>) {
if *button == MouseButton::Left {
let pixel = (
(frame_input.device_pixel_ratio * position.0) as f32,
- (frame_input.device_pixel_ratio * position.1) as f32,
+ (frame_input.viewport.height as f64
+ - frame_input.device_pixel_ratio * position.1)
+ as f32,
);
if let Some(pick) = pick(&context, &camera, pixel, &[&monkey]).unwrap()
{
