blob: 32b1f7c0aa044d7f32fa49bb8c6422ffbbaec61c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
shader_type spatial;
uniform sampler2DArray textures : filter_nearest, source_color;
void vertex() {
// Called for every vertex the material is visible on.
//vec4 element = texture(textures, vec3(UV, UV2.x));
//COLOR = element.rgba;
}
void fragment() {
// Called for every pixel the material is visible on.
vec4 element = texture(textures, vec3(UV, UV2.x));
ALBEDO = element.rgb;
}
//void light() {
// Called for every pixel for every light affecting the material.
// Uncomment to replace the default light processing function with this one.
//}
|