10 lines
173 B
Text
10 lines
173 B
Text
|
shader_type canvas_item;
|
||
|
|
||
|
const float threshold = 0.6;
|
||
|
|
||
|
void fragment() {
|
||
|
vec4 tex = texture(TEXTURE , UV);
|
||
|
COLOR.rgb = min(tex.rgb, vec3(threshold));
|
||
|
COLOR.a = tex.a;
|
||
|
}
|