1// Runtime Effects are allowed to call functions in sksl_shared. 2// At present, the only public exposed functions are `unpremul(half4)` and `unpremul(float4)`. 3 4uniform half4 colorGreen, colorRed; 5 6half4 main(float2 coords) { 7 float4 g = unpremul(float4(colorGreen)); 8 half4 r = unpremul(colorRed); 9 10 return half4(g.rgb, r.a); 11} 12