ensure that models that do not cast shadows are still rendered

This commit is contained in:
Joakim Kilby
2023-10-23 11:31:24 +02:00
parent 4b77b8d27d
commit 78c4eb19f0

View File

@@ -546,7 +546,7 @@ RenderableModel::RenderableModel(const ghoul::Dictionary& dictionary)
}
bool RenderableModel::isReady() const {
return _program && _quadProgram && _depthMapProgram;
return _program && _quadProgram && (!_castShadow || _depthMapProgram);
}
void RenderableModel::initialize() {