From 2b2b801f137da489ad6427a63ed86fef4c5c28f5 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Mon, 28 Aug 2023 16:12:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugin/fx/shader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugin/fx/shader.ts b/src/plugin/fx/shader.ts index 869e2b5..323dab2 100644 --- a/src/plugin/fx/shader.ts +++ b/src/plugin/fx/shader.ts @@ -225,7 +225,7 @@ const sample8 = buildAnimtedSample( void main() { float alpha = clamp(distance(vec2(0, 0), vpos.xy) - 0.6, 0.0, 1.0) * uStrength; vec4 tex = texture2D(uSampler, vTextureCoord); - gl_FragColor = vec4(color1.rgb * (1.0 - alpha), 1.0); + gl_FragColor = vec4(tex.rgb * (1.0 - alpha), 1.0); } `, effect => {