ile-de-test/addons/zylann.hterrain/tools/texture_editor/display_alpha_slice.gdshader
2023-10-05 20:02:23 +02:00

9 lines
216 B
Text

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);
}