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

9 lines
216 B
GLSL

shader_type canvas_item;
uniform sampler2DArray u_texture_array;
uniform float u_index;
void fragment() {
vec4 col = texture(u_texture_array, vec3(UV.x, UV.y, u_index));
COLOR = vec4(col.a, col.a, col.a, 1.0);
}