mirror of
https://github.com/ifengzp/cocos-awesome.git
synced 2024-12-25 03:09:19 +00:00
commit
89ba12506a
@ -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