• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1uniform half a, b, c;
2uniform half4 d, e;
3void main() {
4    sk_FragColor.x = refract(a, b, c);
5    sk_FragColor = refract(d, e, c);
6
7    sk_FragColor.xy   = refract(half2(1,0),     half2(0,1),     0.5);
8    sk_FragColor.xyz  = refract(half3(1,0,0),   half3(0,0,1),   0.5);
9    sk_FragColor.xyzw = refract(half4(1,0,0,0), half4(0,0,0,1), 0.5);
10}
11