Invert Y axis in Transformation::orthographic
This commit is contained in:
parent
b90e5c4e05
commit
02ca90a22d
1 changed files with 5 additions and 1 deletions
|
|
@ -14,7 +14,11 @@ impl Transformation {
|
|||
/// Creates an orthographic projection.
|
||||
#[rustfmt::skip]
|
||||
pub fn orthographic(width: u32, height: u32) -> Transformation {
|
||||
Transformation(Mat4::orthographic_rh_gl(0.0, width as f32, 0.0, height as f32, -1.0, 1.0))
|
||||
Transformation(Mat4::orthographic_rh_gl(
|
||||
0.0, width as f32,
|
||||
height as f32, 0.0,
|
||||
-1.0, 1.0
|
||||
))
|
||||
}
|
||||
|
||||
/// Creates a translate transformation.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue