61 vec2 uv = tc * vec2(aspect, 1.0);
64 float hexScale = 8.0 +
amp_low * 20.0;
66 vec2 hexCenter =
hex.zw / hexScale / vec2(aspect, 1.0);
69 vec3 tex = texture(samp, clamp(hexCenter, 0.0, 1.0)).rgb;
73 vec2 ruv = uv - 0.5 * vec2(aspect, 1.0);
74 float c = cos(
rot), s = sin(
rot);
75 ruv = vec2(c * ruv.x - s * ruv.y, s * ruv.x + c * ruv.y);
76 ruv += 0.5 * vec2(aspect, 1.0);
77 vec4 hex2 =
hexCoord(ruv * hexScale);
78 vec2 hexCenter2 = hex2.zw / hexScale / vec2(aspect, 1.0);
79 vec3 tex2 = texture(samp, clamp(hexCenter2, 0.0, 1.0)).rgb;
82 tex = mix(tex, tex2,
amp_mid * 0.5);
85 float hexDist = length(
hex.xy);
86 float hexEdge = smoothstep(0.45, 0.5, hexDist);
87 tex += hexEdge *
amp_high * 0.4 * vec3(0.5, 0.8, 1.0);
93 tex += smoothstep(0.6, 1.0,
amp_peak) * 0.2;
95 color = vec4(clamp(tex, 0.0, 1.0), 1.0);