lyra-engine/lyra-math/src/lib.rs

17 lines
396 B
Rust
Raw Normal View History

2023-05-15 03:18:41 +00:00
/// Re-export of glam library
pub use glam::*;
pub mod angle;
2023-05-15 03:21:47 +00:00
pub use angle::*;
pub mod transform;
pub use transform::*;
/// A matrix used to convert an OpenGL matrix to a matrix compatible with Wgpu
#[rustfmt::skip]
pub const OPENGL_TO_WGPU_MATRIX: glam::Mat4 = glam::Mat4::from_cols_array(&[
1.0, 0.0, 0.0, 0.0,
0.0, 1.0, 0.0, 0.0,
0.0, 0.0, 0.5, 0.0,
0.0, 0.0, 0.5, 1.0,
]);