summaryrefslogtreecommitdiff
path: root/game/terrain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/terrain.cpp')
-rw-r--r--game/terrain.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/game/terrain.cpp b/game/terrain.cpp
index 3a35c42..911a541 100644
--- a/game/terrain.cpp
+++ b/game/terrain.cpp
@@ -6,7 +6,7 @@
#include <cache.h>
#include <cstddef>
#include <filesystem>
-#include <gfx/gl/shader.h>
+#include <gfx/gl/sceneShader.h>
#include <gfx/image.h>
#include <gfx/models/mesh.h>
#include <gfx/models/vertex.hpp>
@@ -83,13 +83,13 @@ Terrain::tick(TickDuration dur)
}
void
-Terrain::render(const Shader & shader) const
+Terrain::render(const SceneShader & shader) const
{
- shader.setModel(Location {}, Shader::Program::LandMass);
+ shader.setModel(Location {}, SceneShader::Program::LandMass);
grass->bind();
meshes.apply(&Mesh::Draw);
- shader.setModel(Location {}, Shader::Program::Water);
+ shader.setModel(Location {}, SceneShader::Program::Water);
shader.setUniform("waves", {waveCycle, 0, 0});
water->bind();
meshes.apply(&Mesh::Draw);