fix: Only creatures must cast shadows
This fixes shadowing artifacts in some areas.
This commit is contained in:
parent
db3ffa9ebe
commit
c17774d82c
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ bool ModelNodeSceneNode::shouldRender() const {
|
|||
}
|
||||
|
||||
bool ModelNodeSceneNode::shouldCastShadows() const {
|
||||
if (_modelSceneNode->classification() == ModelSceneNode::Classification::Door) return false;
|
||||
if (_modelSceneNode->classification() != ModelSceneNode::Classification::Creature) return false;
|
||||
|
||||
shared_ptr<ModelMesh> mesh(_modelNode->mesh());
|
||||
|
||||
|
|
Loading…
Reference in a new issue