From bba3cb5e500af294332f60e4b18d8b85007ad8b1 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sun, 3 Nov 2024 11:39:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E4=B8=8B=E9=9B=A8?= =?UTF-8?q?=E5=A4=A9=E7=9A=84=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/module/weather/rain.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/module/weather/rain.ts b/src/module/weather/rain.ts index 745d0eb..cd64227 100644 --- a/src/module/weather/rain.ts +++ b/src/module/weather/rain.ts @@ -1,6 +1,4 @@ import { - DrawParamsMap, - IShaderIndices, IShaderUniform, Shader, ShaderProgram, @@ -72,12 +70,6 @@ float random(vec2 uv) { } void main() { - float dis = distance(v_pos, v_center); - float alpha = 1.0; - float decay = v_data.y * 0.5 * 0.5; - if (dis > decay) { - alpha = 2.0 * (dis - decay) / decay; - } float ran = random(v_pos); vec2 pos = vec2(v_pos.x + ran * 0.01, v_pos.y); vec2 texPos = (pos + 1.0) / 2.0; @@ -159,7 +151,6 @@ export class RainWeather implements IWeather { RainWeather.shader.update(RainWeather.shader); const time = 5000 - 400 * this.level; const progress = (Date.now() % time) / time; - // console.log(progress); RainWeather.shader.useProgram(RainShader.rainProgram); this.progress?.set(progress);