summaryrefslogtreecommitdiff
path: root/gfx/gl/shadowMapper.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-01-27 22:49:54 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-01-27 22:49:54 +0000
commitdad6fe3b6227b5d3e78913e164b1f688de1605a8 (patch)
treeddd3854afb250177ec5f12963d8c5315dc8825b3 /gfx/gl/shadowMapper.h
parent3D relative scaling in asset factory (diff)
downloadilt-dad6fe3b6227b5d3e78913e164b1f688de1605a8.tar.bz2
ilt-dad6fe3b6227b5d3e78913e164b1f688de1605a8.tar.xz
ilt-dad6fe3b6227b5d3e78913e164b1f688de1605a8.zip
Set light view point uniform once
Not once per shadow pass
Diffstat (limited to 'gfx/gl/shadowMapper.h')
-rw-r--r--gfx/gl/shadowMapper.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gfx/gl/shadowMapper.h b/gfx/gl/shadowMapper.h
index d1e4e10..065db4f 100644
--- a/gfx/gl/shadowMapper.h
+++ b/gfx/gl/shadowMapper.h
@@ -27,7 +27,8 @@ public:
class FixedPoint : public Program {
public:
FixedPoint(const Shader & vs);
- void setViewProjection(const GlobalPosition3D, const glm::mat4 &) const;
+ void setViewPoint(const GlobalPosition3D) const;
+ void setViewProjection(const glm::mat4 &) const;
void use() const;
private:
@@ -37,7 +38,8 @@ public:
class DynamicPoint : public Program {
public:
DynamicPoint();
- void setViewProjection(const GlobalPosition3D, const glm::mat4 &) const;
+ void setViewPoint(const GlobalPosition3D) const;
+ void setViewProjection(const glm::mat4 &) const;
void use(const Location &) const;
void setModel(const Location &) const;