From 2bc4bcebc93e7211dfb84303888635f888ba8018 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 20 Feb 2021 00:17:58 +0000 Subject: 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. --- gfx/gl/shader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gfx/gl/shader.h') 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 programs; + std::array programs; }; #endif -- cgit v1.2.3