1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-21 15:44:23 +00:00
hella-farm/postprocessing/postprocess.gdshader

10 lines
No EOL
318 B
Text

shader_type canvas_item;
uniform float intensity = 0.1;
uniform sampler2D screen_texture : hint_screen_texture, repeat_disable, filter_nearest;
void fragment() {
float color = round(fract(UV * 360.0).y);
vec4 tex = texture(screen_texture, SCREEN_UV);
COLOR = tex * (1.0 - intensity) + (tex * color * intensity);
}