shader_type spatial; render_mode depth_prepass_alpha,unshaded; uniform sampler2D tex : source_color,filter_nearest; void fragment() { vec4 col = texture(tex, UV); if(col.a<0.5){ discard; } ALBEDO = col.rgb; ALPHA = 1.0; } void light() { DIFFUSE_LIGHT = vec3(0, 0, 0); }