1 2out vec4 sk_FragColor; 3uniform vec4 colorGreen; 4uniform vec4 colorRed; 5vec4 unpremul_h4h4(vec4 color) { 6 return vec4(color.xyz / max(color.w, 9.9999997473787516e-05), color.w); 7} 8vec4 live_fn_h4h4h4(vec4 a, vec4 b) { 9 return a + b; 10} 11vec4 main() { 12 vec4 a; 13 vec4 b; 14 { 15 a = live_fn_h4h4h4(vec4(3.0), vec4(-5.0)); 16 } 17 { 18 b = unpremul_h4h4(vec4(1.0)); 19 } 20 return a != vec4(0.0) && b != vec4(0.0) ? colorGreen : colorRed; 21} 22