This commit is contained in:
2025-07-07 20:58:03 +01:00
parent 362d2e7338
commit 1aac91b0a6
+1 -2
View File
@@ -337,7 +337,6 @@ impl App {
shader_int8: true,
storage_buffer8_bit_access: true,
storage_buffer16_bit_access: true,
geometry_shader: true,
maintenance4: true,
fill_mode_non_solid: true,
shader_draw_parameters: true,
@@ -887,7 +886,7 @@ impl App {
let aspect_ratio =
rcx.swapchain.image_extent()[0] as f32 / rcx.swapchain.image_extent()[1] as f32;
let proj = Mat4::perspective_rh_gl(std::f32::consts::FRAC_PI_2, aspect_ratio, near, far);
let proj = Mat4::perspective_rh(std::f32::consts::FRAC_PI_2, aspect_ratio, near, far);
let view = Mat4::from_euler(EulerRot::XYZ, self.cstate.forward.x.to_radians(), self.cstate.forward.y.to_radians(), self.cstate.forward.z.to_radians())
//* Mat4::from_rotation_z(std::f32::consts::PI)
* Mat4::from_translation(Vec3::ZERO - self.cstate.position);