diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-07-21 02:33:24 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-10 18:14:46 +0100 |
commit | f737aada2b7164683303beb3bb490c30a4949fb0 (patch) | |
tree | d188ee31247b2f3f38021d1cc9a8e558c5a8b15f /gfx/gl/shadowStenciller.h | |
parent | Use mesh extents for shadow stencil extents (diff) | |
download | ilt-f737aada2b7164683303beb3bb490c30a4949fb0.tar.bz2 ilt-f737aada2b7164683303beb3bb490c30a4949fb0.tar.xz ilt-f737aada2b7164683303beb3bb490c30a4949fb0.zip |
Use texture alpha in shadow stencil
Diffstat (limited to 'gfx/gl/shadowStenciller.h')
-rw-r--r-- | gfx/gl/shadowStenciller.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/shadowStenciller.h b/gfx/gl/shadowStenciller.h index 5a22a7e..bf6d204 100644 --- a/gfx/gl/shadowStenciller.h +++ b/gfx/gl/shadowStenciller.h @@ -1,8 +1,8 @@ #pragma once -#include "config/types.h" #include "gfx/gl/program.h" #include "gfx/models/mesh.h" +#include "gfx/models/texture.h" #include "glArrays.h" class ShadowStenciller { @@ -11,7 +11,7 @@ public: [[nodiscard]] static glTexture createStencilTexture(GLsizei width, GLsizei height); - void renderStencil(const glTexture &, const MeshBase &) const; + void renderStencil(const glTexture &, const MeshBase &, const Texture::AnyPtr texture) const; private: glFrameBuffer fbo; |