Harley-xk / MaLiang

iOS painting and drawing library based on Metal. 神笔马良有一支神笔(基于 Metal 的涂鸦绘图库)
MIT License
1.47k stars 208 forks source link

Custom brush alphaBlendOperation .max weird behavior #107

Open FaisalAlneela opened 3 years ago

FaisalAlneela commented 3 years ago

I'm using custom Brush and I set alphaBlendOperation = .max so I can always take the maximum alpha, however the brush works really great except for one situation when I used faded brush texture like the one used in glow brush and when lines are meeting the connection is not done smoothly. Checkout the images bellow that can describes the issue

IMG_1674

Here is my brush texture that I'm using. IMG_1673