#premultiplied alpha
A color stored with its red, green and blue already multiplied by its alpha, so a half-transparent white is (0.5, 0.5, 0.5, 0.5). SwiftUI passes colors to its shader effects this way and expects them back the same; blending and averaging premultiplied colors gives the right answer at soft edges.
1 shader
