first commit
This commit is contained in:
9
addons/zylann.hterrain/tools/texture_editor/display_alpha_slice.gdshader
Executable file
9
addons/zylann.hterrain/tools/texture_editor/display_alpha_slice.gdshader
Executable file
@@ -0,0 +1,9 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user