1#property description Cyan diagonal stripes
2#property frequency 1
3
4void main(void) {
5    fragColor = texture(iInput, uv);
6
7    vec2 normCoord = (uv - 0.5) * aspectCorrection;
8
9    float t = normCoord.x * 3.0 + normCoord.y * 3.0;
10    float y = smoothstep(0.2, 0.7, abs(mod(t - 3. * iIntensityIntegral * iFrequency, 2.) - 1.));
11    float g = smoothstep(0.5, 0.9, abs(mod(1. + t - 3. * iIntensityIntegral * iFrequency, 2.) - 1.));
12
13    vec4 c = vec4(0., 1., 1., 1.) * y;
14    vec4 d = vec4(0., 0., 1., 1.) * g * smoothstep(0.5, 0.8, iIntensity);
15    c = composite(c, d);
16
17    c *= smoothstep(0., 0.1, iIntensity);
18    c = clamp(c, 0., 1.);
19    fragColor = composite(fragColor, c);
20}
21