41 float offset = sin(y * 10.0 +
time_f * 5.0) * 0.005;
44 offset += (
random(y) - 0.5) * 0.02;
48 vec4 texColor = texture(samp, uv);
50 float r = texture(samp, uv + vec2(0.002, 0.0)).r;
51 float g = texture(samp, uv).g;
52 float b = texture(samp, uv - vec2(0.002, 0.0)).b;
54 vec4 compositeColor = vec4(r, g, b, texColor.a);
56 vec4 vhsColor = mix(texColor, compositeColor, 0.5);
58 vhsColor.rgb = vhsColor.rgb * vec3(0.9, 0.85, 0.8) + vec3(0.1, 0.1, 0.15);
59 vhsColor.rgb = clamp(vhsColor.rgb, 0.0, 1.0);