readable .vb format

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent a13d4f1244
commit 3753d08ca5
27 changed files with 783 additions and 274 deletions
+2 -2
View File
@@ -87,8 +87,8 @@ namespace vb01{
for(Mesh *mesh : meshes){
Material *mat=mesh->getMaterial();
if(n->isVisible()&&mat&&mat->isLightingEnabled()){
Vector3 pos=n->getWorldPosition();
Quaternion rot=n->getWorldOrientation();
Vector3 pos=n->localToGlobalPosition(Vector3::VEC_ZERO);
Quaternion rot=n->localToGlobalOrientation(Quaternion::QUAT_W);
Vector3 rotAxis=rot.norm().getAxis();
if(rotAxis==Vector3::VEC_ZERO)