Jelajahi Sumber

fix: 修改代码

nicetry12138 1 tahun lalu
induk
melakukan
1a3a672717
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      图形学/着色器/REAME.md

+ 2 - 2
图形学/着色器/REAME.md

@@ -177,8 +177,8 @@ void mainImage( out vec4 fragColor, in vec2 fragCoord )
     suv.x *= iResolution.x / iResolution.y;    // 调整x坐标,考虑屏幕的宽高比,确保圆形不会变形
     
     vec2 dir = normalize(uv - vec2(0.0));
-    float noiseValue = noise2(uv + dir * 0.1 + vec2(iTime) * 1.0);
-    noiseValue *= 0.6;
+    float noiseValue = noise2(uv + dir * changeRateFactor + vec2(iTime) * speedFactor);
+    noiseValue *= radiusBuffer;
     
     fragColor = mix(bgColor, circleColor, step(length(suv), radius + noiseValue));
 }