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

@@ -55,7 +55,7 @@ impl Client<'_> {
// camera orientation
let old_camera = state.camera;
if self.grabbed_cursor {
let delta = input.mouse_delta * 0.003;
let delta = input.mouse_delta * 0.003 / state.camera.scale;
if delta.x != 0.0 {
state.camera.orientation = Rotation3::from_axis_angle(&state.camera.up(), delta.x)
* state.camera.orientation;