summaryrefslogtreecommitdiff
path: root/gfx/gl/shader.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-02-20 00:17:58 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-02-20 00:17:58 +0000
commit2bc4bcebc93e7211dfb84303888635f888ba8018 (patch)
tree3a349beadc079c544001f3a65ac0e26fe494f8e5 /gfx/gl/shader.h
parentCreate smoother terrain (diff)
downloadilt-2bc4bcebc93e7211dfb84303888635f888ba8018.tar.bz2
ilt-2bc4bcebc93e7211dfb84303888635f888ba8018.tar.xz
ilt-2bc4bcebc93e7211dfb84303888635f888ba8018.zip
Custom land and water shaders
Create sandy beaches, snow topped mountains and grassy hills with a single texture, coloured according to land height by a custom shader. Also use the land mass mesh with a new water texture and a custom shader to create rather nice looking water effect with depth, waves and motion.
Diffstat (limited to 'gfx/gl/shader.h')
-rw-r--r--gfx/gl/shader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/gl/shader.h b/gfx/gl/shader.h
index 0282f21..5d26781 100644
--- a/gfx/gl/shader.h
+++ b/gfx/gl/shader.h
@@ -9,7 +9,7 @@
class Shader {
public:
- enum class Program { Basic = 0 };
+ enum class Program { Basic = 0, Water = 1, LandMass = 2 };
Shader();
@@ -39,7 +39,7 @@ private:
GLint viewProjection_uniform, model_uniform;
};
- std::array<ProgramHandle, 1> programs;
+ std::array<ProgramHandle, 3> programs;
};
#endif