mirror of
https://github.com/ifengzp/cocos-awesome.git
synced 2024-12-25 03:09:19 +00:00
Update circle_avatar.effect
修正透明像素显示为黑色
This commit is contained in:
parent
3d1f27518c
commit
4b88fb4ded
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user