Files
frog/assets/shader/skin_chooser.gdshader
E250429F 3e857fa9f3 credit
2026-09-17 23:19:43 +02:00

11 lines
306 B
Plaintext

shader_type spatial;
uniform sampler2DArray skins : source_color, filter_linear_mipmap, repeat_enable;
instance uniform int skin_index = 0;
void fragment() {
vec4 tex_color = texture(skins, vec3(UV, float(skin_index)));
ALBEDO = tex_color.rgb;
// optional if alpha
// ALPHA = tex_color.a;
}