diff options
Diffstat (limited to 'game/addons/zylann.hterrain/tools/texture_editor/display_alpha.gdshader')
-rw-r--r-- | game/addons/zylann.hterrain/tools/texture_editor/display_alpha.gdshader | 6 |
1 files changed, 6 insertions, 0 deletions
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); +} |