mirror of
https://github.com/ifengzp/cocos-awesome.git
synced 2024-12-25 19:29:20 +00:00
Merge branch 'master' of github.com:ifengzp/cocos-awesome
This commit is contained in:
commit
6532ab39c9
@ -101,7 +101,7 @@ CCProgram fs %{
|
|||||||
float ry = center.y;
|
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);
|
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;
|
gl_FragColor = o;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user