Support comp_matrix

This commit is contained in:
2024-04-02 17:47:41 -05:00
parent 7baa5bdb6d
commit 4da6772827
4 changed files with 32 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ namespace GTETest {
return true;
}
auto matrix = GTE::MATRIX::rotation(0, rotation, rotation);
auto matrix = GTE::MATRIX::rotation(0, 0, rotation);
matrix.trans[0] = (Assets::Main::DoenerFishInfo.size.width/2);
matrix.trans[1] = (Assets::Main::DoenerFishInfo.size.height/2);

View File

@@ -27,7 +27,8 @@ namespace GTETest {
move_back.trans[1] = -matrix.trans[1];
move_back.trans[2] = -matrix.trans[2];
return GTE::apply_matrix(matrix, GTE::apply_matrix(move_back, vector, output), output).to<GPU::Vertex>();
GTE::comp_matrix(matrix, move_back, move_back);
return GTE::apply_matrix(move_back, vector, output).to<GPU::Vertex>();
};
const auto& area = this->area;