13 lines
246 B
Text
13 lines
246 B
Text
shader_type canvas_item;
|
|
|
|
// Settings
|
|
const float threshold = 0.5;
|
|
//
|
|
|
|
void fragment() {
|
|
vec4 tex = texture(TEXTURE , UV);
|
|
COLOR.r = min(tex.r, threshold);
|
|
COLOR.g = min(tex.g, threshold);
|
|
COLOR.b = min(tex.b, threshold);
|
|
COLOR.a = tex.a;
|
|
}
|