// Ortho provides a general purpose orthographic projection. // TODO probably just get rid of this and pass in zero'd out z to perspective func Ortho(m *f32.Mat4, l, r float32, b, t float32, n, f float32) { m.Identity() m.Scale(m, 2/(r-l), 2/(t-b), 2/(f-n)) m.Translate(m, -((l + r) / 2), -((t + b) / 2), (f+n)/2) }