summaryrefslogtreecommitdiff
path: root/gfx/gl/shadowMapper.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-08-28 03:48:19 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-08-28 03:48:19 +0100
commitae9087aea7aa2b19bf78daa6593d14dfba98183d (patch)
tree0263fd2580239c9ac55a4cc775b2a3c3e3f14eb7 /gfx/gl/shadowMapper.h
parentSet stencil texture min/mag filters (diff)
downloadilt-ae9087aea7aa2b19bf78daa6593d14dfba98183d.tar.bz2
ilt-ae9087aea7aa2b19bf78daa6593d14dfba98183d.tar.xz
ilt-ae9087aea7aa2b19bf78daa6593d14dfba98183d.zip
Initial cut of shadow map creation with support for billboard shadows
Diffstat (limited to 'gfx/gl/shadowMapper.h')
-rw-r--r--gfx/gl/shadowMapper.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gfx/gl/shadowMapper.h b/gfx/gl/shadowMapper.h
index 19c3d23..3aa224e 100644
--- a/gfx/gl/shadowMapper.h
+++ b/gfx/gl/shadowMapper.h
@@ -50,8 +50,19 @@ public:
RequiredUniformLocation modelPosLoc {*this, "modelPos"};
};
+ class StencilShadowProgram : public ShadowProgram {
+ public:
+ StencilShadowProgram();
+ void use(const RelativePosition3D & centre, const float size) const;
+
+ private:
+ RequiredUniformLocation centreLoc {*this, "centre"};
+ RequiredUniformLocation sizeLoc {*this, "size"};
+ };
+
ShadowProgram landmess, dynamicPointInst, dynamicPointInstWithTextures;
DynamicPoint dynamicPoint;
+ StencilShadowProgram stencilShadowProgram;
// NOLINTNEXTLINE(hicpp-explicit-conversions)
operator GLuint() const