2024-06-04 18:31:04 +02:00
|
|
|
shader_type canvas_item;
|
|
|
|
|
2025-01-08 20:53:45 +01:00
|
|
|
//!load ./images/swamp.jpg
|
2024-12-19 18:52:47 +01:00
|
|
|
|
2024-06-04 18:31:04 +02:00
|
|
|
// Settings
|
2025-01-07 22:50:15 +01:00
|
|
|
const float threshold = 0.6;
|
2024-06-04 18:31:04 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
void fragment() {
|
|
|
|
vec4 tex = texture(TEXTURE , UV);
|
2025-01-07 22:50:15 +01:00
|
|
|
COLOR.rgb = min(tex.rgb, vec3(threshold));
|
2024-06-04 18:31:04 +02:00
|
|
|
COLOR.a = tex.a;
|
|
|
|
}
|