Update circle_avatar.effect

修正透明像素显示为黑色
This commit is contained in:
徐家伟 2020-05-18 18:01:05 +08:00 committed by GitHub
parent 3d1f27518c
commit 4b88fb4ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,7 +101,7 @@ CCProgram fs %{
float ry = center.y;
float dis = (v_uv0.x * wh_ratio - rx) * (v_uv0.x * wh_ratio - rx) + (v_uv0.y - ry) * (v_uv0.y - ry);
o.a = smoothstep(circle, circle - blur, dis);
o.a = smoothstep(circle, circle - blur, dis) * o.a;
gl_FragColor = o;
}