1 2const float sk_PrivkGuardedDivideEpsilon = false ? 1e-08 : 0.0; 3out vec4 sk_FragColor; 4uniform vec4 color; 5float blend_color_saturation_Qhh3(vec3 color); 6vec4 blend_hslc_h4h2h4h4(vec2 flipSat, vec4 src, vec4 dst); 7float blend_color_saturation_Qhh3(vec3 color) { 8 return max(max(color.x, color.y), color.z) - min(min(color.x, color.y), color.z); 9} 10vec4 blend_hslc_h4h2h4h4(vec2 flipSat, vec4 src, vec4 dst) { 11 float alpha = dst.w * src.w; 12 vec3 sda = src.xyz * dst.w; 13 vec3 dsa = dst.xyz * src.w; 14 vec3 l = bool(flipSat.x) ? dsa : sda; 15 vec3 r = bool(flipSat.x) ? sda : dsa; 16 if (bool(flipSat.y)) { 17 float _2_mn = min(min(l.x, l.y), l.z); 18 float _3_mx = max(max(l.x, l.y), l.z); 19 l = _3_mx > _2_mn ? ((l - _2_mn) * blend_color_saturation_Qhh3(r)) / (_3_mx - _2_mn) : vec3(0.0); 20 r = dsa; 21 } 22 float _4_lum = dot(vec3(0.3, 0.59, 0.11), r); 23 vec3 _5_result = (_4_lum - dot(vec3(0.3, 0.59, 0.11), l)) + l; 24 float _6_minComp = min(min(_5_result.x, _5_result.y), _5_result.z); 25 float _7_maxComp = max(max(_5_result.x, _5_result.y), _5_result.z); 26 if (_6_minComp < 0.0 && _4_lum != _6_minComp) { 27 _5_result = _4_lum + (_5_result - _4_lum) * (_4_lum / ((_4_lum - _6_minComp) + sk_PrivkGuardedDivideEpsilon)); 28 } 29 if (_7_maxComp > alpha && _7_maxComp != _4_lum) { 30 _5_result = _4_lum + ((_5_result - _4_lum) * (alpha - _4_lum)) / ((_7_maxComp - _4_lum) + sk_PrivkGuardedDivideEpsilon); 31 } 32 return vec4((((_5_result + dst.xyz) - dsa) + src.xyz) - sda, (src.w + dst.w) - alpha); 33} 34void main() { 35 float _1_c = color.x * color.y + color.z; 36 sk_FragColor = vec4(_1_c); 37 sk_FragColor *= 1.25; 38 sk_FragColor *= color.xxyy * color.w; 39 sk_FragColor *= color.zzww * color.y; 40 sk_FragColor *= blend_hslc_h4h2h4h4(vec2(0.0, 1.0), color, color.wwww); 41 sk_FragColor *= blend_hslc_h4h2h4h4(vec2(0.0, 1.0), color, color.wzyx); 42} 43