aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/Minimap.gdshader
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-05-11 00:26:00 +0200
committer Hop311 <hop3114@gmail.com>2023-05-11 00:54:24 +0200
commit9ed9ee209ef9accebb9ec0d81ec58b569d680b6a (patch)
tree3418feaa5be1a932d84fd2f9c71280b39f706031 /game/src/GameSession/Minimap.gdshader
parentf3bcc10f06ed9aebd281df7851045b0247113e19 (diff)
Fix building buttons and terrain texture imports
Diffstat (limited to 'game/src/GameSession/Minimap.gdshader')
-rw-r--r--game/src/GameSession/Minimap.gdshader18
1 files changed, 0 insertions, 18 deletions
diff --git a/game/src/GameSession/Minimap.gdshader b/game/src/GameSession/Minimap.gdshader
deleted file mode 100644
index 8b68108..0000000
--- a/game/src/GameSession/Minimap.gdshader
+++ /dev/null
@@ -1,18 +0,0 @@
-shader_type canvas_item;
-
-#include "ProvinceIndexSampler.gdshaderinc"
-
-// Index of the currently selected province
-uniform uint selected_index;
-
-const vec3 land_colour = vec3(0.5);
-const vec3 selected_colour = vec3(1.0, 1.0, 0.0);
-
-void fragment() {
- uvec3 data = read_uvec3(UV);
- uint index = uvec2_to_uint(data.rg);
- float is_land = float(data.b != 0u);
- float is_selected = float(index == selected_index);
- COLOR.rgb = mix(COLOR.rgb, land_colour, is_land);
- COLOR.rgb = mix(COLOR.rgb, selected_colour, is_selected);
-}