summaryrefslogtreecommitdiff
path: root/gfx/gl/shadowStenciller.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-09-03 01:37:03 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-09-03 01:37:03 +0100
commitf22f79330f9b8851cda76d1e11555877cbb72d80 (patch)
tree5d1934ff10a5be4a609791a8ab2327b39a4c0ae4 /gfx/gl/shadowStenciller.cpp
parentUpdate stencil texture to 2d array (diff)
downloadilt-f22f79330f9b8851cda76d1e11555877cbb72d80.tar.bz2
ilt-f22f79330f9b8851cda76d1e11555877cbb72d80.tar.xz
ilt-f22f79330f9b8851cda76d1e11555877cbb72d80.zip
Populate all layers of the stencil texture
Albeit with the same projection
Diffstat (limited to 'gfx/gl/shadowStenciller.cpp')
-rw-r--r--gfx/gl/shadowStenciller.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx/gl/shadowStenciller.cpp b/gfx/gl/shadowStenciller.cpp
index 01248bd..1063b71 100644
--- a/gfx/gl/shadowStenciller.cpp
+++ b/gfx/gl/shadowStenciller.cpp
@@ -1,13 +1,14 @@
#include "shadowStenciller.h"
#include "gfx/gl/program.h"
#include "gfx/gl/shaders/fs-shadowStencil.h"
+#include "gfx/gl/shaders/gs-shadowStencil.h"
#include "gfx/gl/shaders/vs-shadowStencil.h"
#include "gfx/models/mesh.h"
#include "glArrays.h"
#include "gl_traits.h"
#include <stdexcept>
-ShadowStenciller::ShadowStenciller() : shadowCaster {shadowStencil_vs, shadowStencil_fs}
+ShadowStenciller::ShadowStenciller() : shadowCaster {shadowStencil_vs, shadowStencil_gs, shadowStencil_fs}
{
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
glDrawBuffer(GL_NONE);