khanat-client/addons/zylann.hterrain/tools/texture_editor/display_alpha.shader

6 lines
110 B
GLSL

shader_type canvas_item;
void fragment() {
float a = texture(TEXTURE, UV).a;
COLOR = vec4(a, a, a, 1.0);
}