🔧 Use uDuration instead of uTime

This commit is contained in:
Simon Schneegans
2022-06-10 07:30:44 +02:00
parent 0bd0fb27b9
commit 46a1729e54
9 changed files with 30 additions and 26 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ void main() {
// Add glimmering atoms.
vec2 atomUV = iTexCoord.st + vec2(0, -0.025 * progress / SHOWER_TIME);
atomUV *= 0.2 * uSize / uScale;
float atoms = pow((simplex3D(vec3(atomUV, uTime))), 5.0);
float atoms = pow((simplex3D(vec3(atomUV, uProgress * uDuration))), 5.0);
oColor.rgb += uColor * atoms * masks.z;
oColor.a += atoms * masks.z;