Merge branch 'master' of github.com:ifengzp/cocos-awesome

This commit is contained in:
ifengzp 2020-05-29 14:01:32 +08:00
commit 6532ab39c9

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;
}