For the life of me I can’t seem to find a BlendState for the Max BlendFunction that works as desired with alpha.
Use case screenshot, brush drawing:
The triangles are irrelevant for anything except the positions of where to run the fragment program, every vertex in each triangle has identical vertex data for each vertex containing the start/end, color, and radius of the line the triangle covers. So everything would work even with full-screen quads (wastefully of course).
The problem is since it’s a paint stroke there is no way to keep triangles from twisting about each other so additive blending isn’t suitable (it’s also not desired for a continuous brush stroke to add to itself either). Though I could certainly clean some of it up it’s pointless because there’s no solution to a 180 degree miter.
I can’t seem to find a max blending state that will mix the alpha correctly, all I get is the equivalent of solid stroke (no alpha-fade with distance).