From 5022ec800b096e9a85d6ef07ca4b652abb8625ee Mon Sep 17 00:00:00 2001 From: Hop311 Date: Fri, 28 Apr 2023 19:08:58 +0100 Subject: Terrain channel for provinces + generated minimap --- game/src/GameSession/Minimap.gdshader | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 game/src/GameSession/Minimap.gdshader (limited to 'game/src/GameSession/Minimap.gdshader') 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)); +} -- cgit v1.2.3-56-ga3b1