use own mtx api cause i confirmed it as working

This commit is contained in:
2025-11-26 11:08:36 +01:00
parent dfb854985d
commit 9731579af9

View File

@@ -76,16 +76,11 @@ void iron::newFrame() {
m_vtx = 0;
}
C3D_Mtx m;
void iron::drawOn(c3d::screen* screen) {
m_shader->use();
Mtx_Identity(&m);
Mtx_OrthoTilt(&m, 0.f, (float)screen->width(), (float)screen->height(), 0.f,
1.f, -1.f, false);
m_mtx = mat4::ortho(0.f, (float)screen->width(), (float)screen->height(), 0.f,
1.f, -1.f);
m_shader->setMat4(uLocProj, &m);
m_shader->setMat4(uLocProj, m_mtx);
}
void iron::draw(const std::vector<iron::command::ref>& data) {