diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-09-02 21:00:41 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-09-02 21:00:41 +0100 |
commit | 052b2b49d9bfdaaa7f7c5603fa7c47b881df93c2 (patch) | |
tree | e1ee5476434ae0855a4970c10e7e8fc88744b30b /game/scenary | |
parent | Update Texture::getSize and ::size to account for the third texture dimension (diff) | |
download | ilt-052b2b49d9bfdaaa7f7c5603fa7c47b881df93c2.tar.bz2 ilt-052b2b49d9bfdaaa7f7c5603fa7c47b881df93c2.tar.xz ilt-052b2b49d9bfdaaa7f7c5603fa7c47b881df93c2.zip |
Update stencil texture to 2d array
Diffstat (limited to 'game/scenary')
-rw-r--r-- | game/scenary/foliage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/scenary/foliage.cpp b/game/scenary/foliage.cpp index af67ea6..1e7424e 100644 --- a/game/scenary/foliage.cpp +++ b/game/scenary/foliage.cpp @@ -48,7 +48,7 @@ Foliage::shadows(const ShadowMapper & mapper) const const auto dimensions = bodyMesh->getDimensions(); mapper.stencilShadowProgram.use(dimensions.centre, dimensions.size); glActiveTexture(GL_TEXTURE0); - glBindTexture(GL_TEXTURE_2D, shadowStencil); + glBindTexture(GL_TEXTURE_2D_ARRAY, shadowStencil); glBindVertexArray(instancePointVAO); glDrawArrays(GL_POINTS, 0, static_cast<GLsizei>(count)); glBindVertexArray(0); |