17 lines
252 B
Plaintext
17 lines
252 B
Plaintext
shader_type spatial;
|
|
render_mode cull_disabled;
|
|
|
|
uniform sampler2D tileset : filter_nearest;
|
|
|
|
void vertex() {
|
|
}
|
|
|
|
void fragment() {
|
|
vec4 textureColor = texture(tileset, UV) * COLOR;
|
|
|
|
if(textureColor.a == 0.0)
|
|
discard;
|
|
|
|
ALBEDO = textureColor.rgb;
|
|
}
|