fix: Doors must not cast shadows
This commit is contained in:
parent
78762b79c4
commit
27d66ad5bf
1 changed files with 3 additions and 0 deletions
|
@ -88,7 +88,10 @@ bool ModelNodeSceneNode::shouldRender() const {
|
|||
}
|
||||
|
||||
bool ModelNodeSceneNode::shouldCastShadows() const {
|
||||
if (_modelSceneNode->classification() == ModelSceneNode::Classification::Door) return false;
|
||||
|
||||
shared_ptr<ModelMesh> mesh(_modelNode->mesh());
|
||||
|
||||
return mesh && mesh->shouldCastShadows() && !static_cast<bool>(_modelNode->skin());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue