Getting there...?

This commit is contained in:
2024-04-02 16:28:09 -05:00
parent 57e1a17dd2
commit 7baa5bdb6d
3 changed files with 11 additions and 6 deletions

View File

@@ -19,10 +19,15 @@ namespace GTETest {
void apply(const GTE::MATRIX& matrix) {
static const auto apply_to = [](const GTE::MATRIX& matrix, GTE::SVECTOR vector) -> GPU::Vertex {
GTE::MATRIX move_back = GTE::MATRIX::identity();
GTE::SVECTOR output;
int32_t flag;
return GTE::apply_matrix(matrix, vector, output).to<GPU::Vertex>();
move_back.trans[0] = -matrix.trans[0];
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>();
};
const auto& area = this->area;