summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-19 02:12:49 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-19 02:12:49 +0100
commit49cd81dbe4044d2cc58615b78b7941484359ffb7 (patch)
tree47ca04c149f1b724ad3553576bad85ace0641341 /gfx
parentFix type of basic instanced shader (diff)
downloadilt-49cd81dbe4044d2cc58615b78b7941484359ffb7.tar.bz2
ilt-49cd81dbe4044d2cc58615b78b7941484359ffb7.tar.xz
ilt-49cd81dbe4044d2cc58615b78b7941484359ffb7.zip
Add basic instanced shader to those which get the viewProjection configured
Diffstat (limited to 'gfx')
-rw-r--r--gfx/gl/sceneShader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/gfx/gl/sceneShader.cpp b/gfx/gl/sceneShader.cpp
index bccd970..00d9826 100644
--- a/gfx/gl/sceneShader.cpp
+++ b/gfx/gl/sceneShader.cpp
@@ -28,8 +28,8 @@ SceneShader::SceneShader() :
void
SceneShader::setViewProjection(const glm::mat4 & viewProjection) const
{
- for (const auto & prog :
- std::array<const SceneProgram *, 6> {&basic, &water, &landmass, &absolute, &pointLight, &spotLight}) {
+ for (const auto & prog : std::array<const SceneProgram *, 7> {
+ &basic, &basicInst, &water, &landmass, &absolute, &pointLight, &spotLight}) {
prog->setViewProjection(viewProjection);
}
}
@@ -37,8 +37,8 @@ SceneShader::setViewProjection(const glm::mat4 & viewProjection) const
void
SceneShader::setViewPort(const glm::ivec4 & viewPort) const
{
- for (const auto & prog :
- std::array<const SceneProgram *, 6> {&basic, &water, &landmass, &absolute, &pointLight, &spotLight}) {
+ for (const auto & prog : std::array<const SceneProgram *, 7> {
+ &basic, &basicInst, &water, &landmass, &absolute, &pointLight, &spotLight}) {
prog->setViewPort(viewPort);
}
}