11 lines
306 B
Plaintext
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;
|
|
} |