Pigment/examples/lowpass.gdshader

10 lines
173 B
Text
Raw Permalink Normal View History

2025-10-10 22:05:07 +02:00
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;
}