export default `vec4 blend(const in vec4 x, const in vec4 y, const in float opacity) { return max(x + y - 1.0, 0.0) * opacity + x * (1.0 - opacity); } `