From 4b88fb4ded28de40bf2e4c60156d4f5606f4964e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E5=AE=B6=E4=BC=9F?= Date: Mon, 18 May 2020 18:01:05 +0800 Subject: [PATCH] Update circle_avatar.effect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修正透明像素显示为黑色 --- assets/Scene/Circle_avatar/circle_avatar.effect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/Scene/Circle_avatar/circle_avatar.effect b/assets/Scene/Circle_avatar/circle_avatar.effect index ee44002..6e32cd3 100644 --- a/assets/Scene/Circle_avatar/circle_avatar.effect +++ b/assets/Scene/Circle_avatar/circle_avatar.effect @@ -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; }