diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-12-03 14:22:06 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-12-03 14:22:06 +0000 |
commit | 57d02ec977e04003aadbca8fc18ed0f4b98b3288 (patch) | |
tree | 1b4222a2bc08a257e0000345329d15f3e5081bad /gfx/gl/shadowMapper.h | |
parent | Render correct VAO for rail vehicle shadows (diff) | |
download | ilt-57d02ec977e04003aadbca8fc18ed0f4b98b3288.tar.bz2 ilt-57d02ec977e04003aadbca8fc18ed0f4b98b3288.tar.xz ilt-57d02ec977e04003aadbca8fc18ed0f4b98b3288.zip |
Set the viewPoint uniform in shadow shaders
Diffstat (limited to 'gfx/gl/shadowMapper.h')
-rw-r--r-- | gfx/gl/shadowMapper.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gfx/gl/shadowMapper.h b/gfx/gl/shadowMapper.h index b53a7f1..01520ca 100644 --- a/gfx/gl/shadowMapper.h +++ b/gfx/gl/shadowMapper.h @@ -27,22 +27,22 @@ public: class FixedPoint : public Program { public: FixedPoint(const Shader & vs); - void setViewProjection(const glm::mat4 &) const; + void setViewProjection(const GlobalPosition3D, const glm::mat4 &) const; void use() const; private: - RequiredUniformLocation viewProjectionLoc; + RequiredUniformLocation viewProjectionLoc, viewPointLoc; }; class DynamicPoint : public Program { public: DynamicPoint(); - void setViewProjection(const glm::mat4 &) const; + void setViewProjection(const GlobalPosition3D, const glm::mat4 &) const; void use(const Location &) const; void setModel(const Location &) const; private: - RequiredUniformLocation viewProjectionLoc; + RequiredUniformLocation viewProjectionLoc, viewPointLoc; RequiredUniformLocation modelLoc; RequiredUniformLocation modelPosLoc; }; |