2024-06-19 14:50:43 +02:00
|
|
|
shader_type canvas_item;
|
|
|
|
|
2024-12-19 18:52:47 +01:00
|
|
|
//!load ./swamp.jpg
|
|
|
|
|
2024-06-19 14:50:43 +02:00
|
|
|
const float strength = 0.1;
|
|
|
|
|
|
|
|
void fragment() {
|
|
|
|
vec2 uv = UV;
|
|
|
|
float b = (COLOR.r + COLOR.g + COLOR.b) / 3.0;
|
|
|
|
uv.x = mix(uv.x, b, strength);
|
|
|
|
uv.y = mix(uv.y, b, strength);
|
|
|
|
COLOR = texture(TEXTURE, uv);
|
|
|
|
}
|