summaryrefslogtreecommitdiff
path: root/game/scenary/foliage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/scenary/foliage.cpp')
-rw-r--r--game/scenary/foliage.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/game/scenary/foliage.cpp b/game/scenary/foliage.cpp
index c258b77..73d285f 100644
--- a/game/scenary/foliage.cpp
+++ b/game/scenary/foliage.cpp
@@ -35,7 +35,10 @@ void
Foliage::shadows(const ShadowMapper & mapper) const
{
if (const auto count = instances.size()) {
- mapper.dynamicPointInst.use();
+ mapper.dynamicPointInstWithTextures.use();
+ if (texture) {
+ texture->bind(GL_TEXTURE3);
+ }
bodyMesh->DrawInstanced(instanceVAO, static_cast<GLsizei>(count));
}
}