aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/MapControlPanel/Minimap.gdshader
diff options
context:
space:
mode:
author BrickPi <ajmach6@gmail.com>2024-11-14 04:05:46 +0100
committer BrickPi <ajmach6@gmail.com>2024-11-15 02:55:15 +0100
commit9960ccfd404f89fbc71a1d02796253503a483c23 (patch)
tree63fbfbfa6cce76b9a280772e4013428e8c52b546 /game/src/Game/GameSession/MapControlPanel/Minimap.gdshader
parent7f7510cd3c3541b596d97eff8ade42e819d82c85 (diff)
Use V2 Minimap GUImapmode-panel
Diffstat (limited to 'game/src/Game/GameSession/MapControlPanel/Minimap.gdshader')
-rw-r--r--game/src/Game/GameSession/MapControlPanel/Minimap.gdshader18
1 files changed, 0 insertions, 18 deletions
diff --git a/game/src/Game/GameSession/MapControlPanel/Minimap.gdshader b/game/src/Game/GameSession/MapControlPanel/Minimap.gdshader
deleted file mode 100644
index 271b809..0000000
--- a/game/src/Game/GameSession/MapControlPanel/Minimap.gdshader
+++ /dev/null
@@ -1,18 +0,0 @@
-shader_type canvas_item;
-
-#include "res://src/Game/GameSession/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);
-}