diff options
Diffstat (limited to 'game/scenary')
-rw-r--r-- | game/scenary/foliage.cpp | 5 |
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)); } } |