add obj export

This commit is contained in:
Stewart Allen 2022-01-08 21:00:19 -05:00
commit 7ea66a9e7b
6 changed files with 91 additions and 38 deletions

View file

@ -76,9 +76,13 @@ mesh.model = class MeshModel extends mesh.object {
return this.mesh;
}
get matrix() {
return this.mesh.matrixWorld.elements;
}
debug() {
worker.model_debug({
matrix: this.mesh.matrixWorld.elements,
matrix: this.matrix,
id: this.id
}).then(data => {
// for debugging matrix ops