/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
function e(e){e.code.add("\n  vec4 blendColorsPremultiplied(vec4 source, vec4 dest) {\n    float oneMinusSourceAlpha = 1.0 - source.a;\n    return source + dest * oneMinusSourceAlpha;\n  }\n  ")}function n(e,n){return e[0]=n[0]*n[3],e[1]=n[1]*n[3],e[2]=n[2]*n[3],e[3]=n[3],e}export{e as BlendColorsPremultiplied,n as premultiplyAlpha};
