Add seperation between ROTMATRIX and TRANSFERVECTOR
This commit is contained in:
@@ -19,14 +19,12 @@ 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::MATRIX move_back = GTE::MATRIX{
|
||||
GTE::ROTMATRIX::identity(), GTE::TRANSFERVECTOR::translated(-matrix.transfer.x, -matrix.transfer.y, -matrix.transfer.z)
|
||||
};
|
||||
GTE::SVECTOR output;
|
||||
int32_t flag;
|
||||
|
||||
move_back.trans[0] = -matrix.trans[0];
|
||||
move_back.trans[1] = -matrix.trans[1];
|
||||
move_back.trans[2] = -matrix.trans[2];
|
||||
|
||||
GTE::comp_matrix(matrix, move_back, move_back);
|
||||
return GTE::apply_matrix(move_back, vector, output).to<GPU::Vertex>();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user