diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-03 18:25:28 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-11-03 18:25:28 +0000 |
commit | f848ad0e672d913c36fcb86533cbc11a9cf9d9ea (patch) | |
tree | e8384bdb074a4e3e53fd9a218b9d9910e6a8256d /game/terrain.cpp | |
parent | Tidied Scene Renderer (diff) | |
download | ilt-f848ad0e672d913c36fcb86533cbc11a9cf9d9ea.tar.bz2 ilt-f848ad0e672d913c36fcb86533cbc11a9cf9d9ea.tar.xz ilt-f848ad0e672d913c36fcb86533cbc11a9cf9d9ea.zip |
Rename Shader to SceneShader
Diffstat (limited to 'game/terrain.cpp')
-rw-r--r-- | game/terrain.cpp | 8 |
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); |