From 71b3cd829f80de4c2cd3972d8bfd5ee470a5d180 Mon Sep 17 00:00:00 2001 From: Gone2Daly <71726742+Gone2Daly@users.noreply.github.com> Date: Sat, 22 Jul 2023 21:05:42 +0200 Subject: init_test --- .../zylann.hterrain/tools/texture_editor/display_alpha.gdshader | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 game/addons/zylann.hterrain/tools/texture_editor/display_alpha.gdshader (limited to 'game/addons/zylann.hterrain/tools/texture_editor/display_alpha.gdshader') diff --git a/game/addons/zylann.hterrain/tools/texture_editor/display_alpha.gdshader b/game/addons/zylann.hterrain/tools/texture_editor/display_alpha.gdshader new file mode 100644 index 0000000..7ac1b98 --- /dev/null +++ b/game/addons/zylann.hterrain/tools/texture_editor/display_alpha.gdshader @@ -0,0 +1,6 @@ +shader_type canvas_item; + +void fragment() { + float a = texture(TEXTURE, UV).a; + COLOR = vec4(a, a, a, 1.0); +} -- cgit v1.2.3-56-ga3b1