aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/MapControlPanel/Minimap.gdshader
diff options
context:
space:
mode:
author Hop311 <Hop3114@gmail.com>2024-11-19 17:35:26 +0100
committer GitHub <noreply@github.com>2024-11-19 17:35:26 +0100
commit0da99047c2d5f30fa90798a3833134c78910c2ea (patch)
tree08979339133a902a9226ea1766de321ee1cc780c /game/src/Game/GameSession/MapControlPanel/Minimap.gdshader
parent9455c807d392e2cdd11c7f3cc89dd567422faa99 (diff)
parent2cdbcea72762822adedf948f43a61d38472b5c7d (diff)
Merge pull request #287 from OpenVicProject/mapmode-panel
Implement the V2 Minimap + Menubar GUI
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);
-}