aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/Minimap.gdshader
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-04-28 20:08:58 +0200
committer Hop311 <hop3114@gmail.com>2023-04-28 20:08:58 +0200
commit5022ec800b096e9a85d6ef07ca4b652abb8625ee (patch)
tree899b97479f6a1aabbfe352747bea162ce5720193 /game/src/GameSession/Minimap.gdshader
parent2455806f52f0133e5bd5e4997589c5ce4fe99b2c (diff)
Terrain channel for provinces + generated minimap
Diffstat (limited to 'game/src/GameSession/Minimap.gdshader')
-rw-r--r--game/src/GameSession/Minimap.gdshader7
1 files changed, 7 insertions, 0 deletions
diff --git a/game/src/GameSession/Minimap.gdshader b/game/src/GameSession/Minimap.gdshader
new file mode 100644
index 0000000..9afd470
--- /dev/null
+++ b/game/src/GameSession/Minimap.gdshader
@@ -0,0 +1,7 @@
+shader_type canvas_item;
+
+#include "ProvinceIndexSampler.gdshaderinc"
+
+void fragment() {
+ COLOR.rgb = mix(COLOR.rgb, vec3(0.5), float(read_uvec3(UV).b != 0u));
+}