118 vec2 p = (tc - .5) * vec2(aspect, 1.0);
121 vec3
n = normalize(vec3((
h - hx) * 5.0, (
h - hy) * 5.0, e));
123 float split = .002 +
amp_high * .010;
124 vec3 src = vec3(texture(samp,
mirrorUV(uv +
n.xy * split)).r, texture(samp, uv).g,
125 texture(samp,
mirrorUV(uv -
n.xy * split)).b);
126 vec3 v = normalize(vec3(-p * .14, 1.25));
127 float fres = pow(1.0 - max(dot(
n, v), 0.0), 4.5);
128 vec3 pearlHue = mix(vec3(.93, .91, .86),
spectral(
h * .38 +
n.x * .11 -
time_f * .018), .62);
129 float gleam = pow(max(dot(
n, normalize(vec3(-.45, .7, .57))), 0.0), 64.0);
130 float membrane = pow(clamp(abs(
h) * 3.2, 0.0, 1.0), 8.0);
131 vec3 result = mix(src, src * pearlHue * 1.18, .28) + pearlHue * (.12 + .66 * fres);
133 gleam * vec3(1.0, .9, .78) * (1.0 +
amp_peak * .65) + pearlHue * membrane *
amp_mid * .16;
134 color = vec4(
aces(result * (1.0 +
amp_smooth * .12)), texture(samp, uv).a);