glsl-blend
glsl-blend copied to clipboard
shader for opacity of both layer
what is shader for base.a < 1 and overlay.a < 1
This works for transparent images:
float blendOpac = blendLayerOpacity * blend.a;
vec4 outCol;
outCol.rgb = blendScreen(base.rgb, blend.rgb, blendOpac); // works for any blendMode
outCol.a = blendOpac + base.a;