mirror of
https://github.com/lisk77/comet.git
synced 2025-10-24 13:58:49 +00:00
feat: added the beginnings of a ecs based camera system. render_scene_2d crashes miserably right now but theoretically everything *should* be in place for a full adoption
This commit is contained in:
parent
a9a8d076ca
commit
4ce24b58dd
5 changed files with 128 additions and 33 deletions
|
|
@ -528,6 +528,13 @@ impl Mat4 {
|
|||
x30: 0.0, x31: 0.0, x32: 0.0, x33: 1.0
|
||||
};
|
||||
|
||||
pub const OPENGL: Mat4 = Mat4 {
|
||||
x00: 1.0, x01: 0.0, x02: 0.0, x03: 0.0,
|
||||
x10: 0.0, x11: 1.0, x12: 0.0, x13: 0.0,
|
||||
x20: 0.0, x21: 0.0, x22: 0.5, x23: 0.0,
|
||||
x30: 0.0, x31: 0.0, x32: 0.5, x33: 1.0
|
||||
};
|
||||
|
||||
pub const fn new(x00: f32, x01: f32,x02: f32,x03: f32,x10: f32,x11: f32,x12: f32,x13: f32,x20: f32,x21: f32,x22: f32,x23: f32,x30: f32, x31: f32, x32: f32,x33: f32) -> Self {
|
||||
Self {
|
||||
x00, x01, x02, x03,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue