mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
matrices and bug fixes
This commit is contained in:
@@ -213,9 +213,20 @@ namespace vb01{
|
||||
}
|
||||
|
||||
void Model::setCastShadow(bool castShadow){
|
||||
for(Node *node : children)
|
||||
vector<Node*> descendants;
|
||||
getDescendants(this,descendants);
|
||||
for(Node *node : descendants)
|
||||
for(Mesh *mesh : node->getMeshes())
|
||||
mesh->setCastShadow(castShadow);
|
||||
this->castShadow=castShadow;
|
||||
}
|
||||
|
||||
void Model::setWireframe(bool wirefame){
|
||||
vector<Node*> descendants;
|
||||
getDescendants(this,descendants);
|
||||
for(Node *node : descendants)
|
||||
for(Mesh *mesh : node->getMeshes())
|
||||
mesh->setWireframe(wirefame);
|
||||
this->wireframe=wireframe;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user