diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-18 16:14:29 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-08-18 18:00:06 +0100 |
commit | 172beac34e82c86f8c16b8a1be5fca9d7ccfc0d1 (patch) | |
tree | 22607b9012b8140e6f80fad39f49d899ef12908c /gfx/gl/shadowStenciller.h | |
parent | Add updateStencil to Renderable interface (diff) | |
download | ilt-172beac34e82c86f8c16b8a1be5fca9d7ccfc0d1.tar.bz2 ilt-172beac34e82c86f8c16b8a1be5fca9d7ccfc0d1.tar.xz ilt-172beac34e82c86f8c16b8a1be5fca9d7ccfc0d1.zip |
Update asset stencils from shadow mapper
Diffstat (limited to 'gfx/gl/shadowStenciller.h')
-rw-r--r-- | gfx/gl/shadowStenciller.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx/gl/shadowStenciller.h b/gfx/gl/shadowStenciller.h index bf6d204..87dc044 100644 --- a/gfx/gl/shadowStenciller.h +++ b/gfx/gl/shadowStenciller.h @@ -7,7 +7,7 @@ class ShadowStenciller { public: - ShadowStenciller(); + ShadowStenciller(const Direction3D & lightDir, const Direction3D & lightDirUp); [[nodiscard]] static glTexture createStencilTexture(GLsizei width, GLsizei height); @@ -16,5 +16,6 @@ public: private: glFrameBuffer fbo; Program shadowCaster; + glm::mat4 lightDirMat; Program::UniformLocation viewProjectionLoc {shadowCaster, "viewProjection"}; }; |