summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-07-21 02:33:24 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-08-10 18:14:46 +0100
commitf737aada2b7164683303beb3bb490c30a4949fb0 (patch)
treed188ee31247b2f3f38021d1cc9a8e558c5a8b15f /game
parentUse mesh extents for shadow stencil extents (diff)
downloadilt-f737aada2b7164683303beb3bb490c30a4949fb0.tar.bz2
ilt-f737aada2b7164683303beb3bb490c30a4949fb0.tar.xz
ilt-f737aada2b7164683303beb3bb490c30a4949fb0.zip
Use texture alpha in shadow stencil
Diffstat (limited to 'game')
-rw-r--r--game/scenary/foliage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/scenary/foliage.cpp b/game/scenary/foliage.cpp
index 24caeb7..ba1b37e 100644
--- a/game/scenary/foliage.cpp
+++ b/game/scenary/foliage.cpp
@@ -18,7 +18,7 @@ Foliage::postLoad()
bodyMesh->configureVAO(instanceVAO)
.addAttribs<LocationVertex, &LocationVertex::first, &LocationVertex::second>(instances.bufferName(), 1);
ShadowStenciller ss;
- ss.renderStencil(shadowStencil, *bodyMesh);
+ ss.renderStencil(shadowStencil, *bodyMesh, texture);
Texture::saveDepth(shadowStencil, std::format("/tmp/stencil-{}.tga", id).c_str());
}