fix: Only creatures must cast shadows

This fixes shadowing artifacts in some areas.
This commit is contained in:
Vsevolod Kremianskii 2021-03-16 13:24:26 +07:00
parent db3ffa9ebe
commit c17774d82c

View file

@ -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());