basic fully working octree renderer

This commit is contained in:
2024-09-10 13:19:45 -04:00
parent 53c4d067e2
commit 3417250544
9 changed files with 572 additions and 314 deletions

View File

@@ -83,6 +83,12 @@ impl Input {
self.mouse_just_released.insert(button);
}
},
WindowEvent::MouseWheel { device_id, delta, phase } => {
self.scroll_delta = match delta {
MouseScrollDelta::LineDelta(_, v) => v,
MouseScrollDelta::PixelDelta(v) => (v.y / 2.0) as f32,
};
}
_ => (),
}
}