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

10 lines
318 B
Text
Raw Normal View History

2024-04-14 22:27:17 +00:00
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);
}