Fragmented/src/presets/shaders/lowpass.gdshader

14 lines
246 B
Text
Raw Normal View History

2024-06-04 18:31:04 +02:00
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;
}