summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneShader.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-11-23 17:34:55 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-11-23 18:38:46 +0000
commit9c1fee14b25ad552ef36f9f08ff93bd3f02597e1 (patch)
treea22dc81abf4f03285a9ae9fe713db84bfede7013 /gfx/gl/sceneShader.cpp
parentAdd geometry shader support to build system (diff)
downloadilt-9c1fee14b25ad552ef36f9f08ff93bd3f02597e1.tar.bz2
ilt-9c1fee14b25ad552ef36f9f08ff93bd3f02597e1.tar.xz
ilt-9c1fee14b25ad552ef36f9f08ff93bd3f02597e1.zip
Rename setView to setViewProjection to avoid ambiguity
Diffstat (limited to 'gfx/gl/sceneShader.cpp')
-rw-r--r--gfx/gl/sceneShader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gfx/gl/sceneShader.cpp b/gfx/gl/sceneShader.cpp
index bec6553..b20b1db 100644
--- a/gfx/gl/sceneShader.cpp
+++ b/gfx/gl/sceneShader.cpp
@@ -17,15 +17,15 @@ SceneShader::SceneShader() :
}
void
-SceneShader::setView(glm::mat4 proj) const
+SceneShader::setViewProjection(const glm::mat4 & viewProjection) const
{
for (const auto & prog : std::array<const SceneProgram *, 4> {&basic, &water, &landmass, &absolute}) {
- prog->setView(proj);
+ prog->setViewProjection(viewProjection);
}
}
void
-SceneShader::SceneProgram::setView(const glm::mat4 & viewProjection) const
+SceneShader::SceneProgram::setViewProjection(const glm::mat4 & viewProjection) const
{
glUseProgram(*this);
glUniformMatrix4fv(viewProjectionLoc, 1, GL_FALSE, glm::value_ptr(viewProjection));