Skip to content

Commit

Permalink
fix: remove hardcoded speed number, that setting at 0 doesn't stop th…
Browse files Browse the repository at this point in the history
…e effect
  • Loading branch information
JaimeTorrealba committed May 27, 2024
1 parent 6794dfe commit e67f3a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/staging/Precipitation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const setSpeed = () => {
velocityArray = new Float32Array(count.value * 2)
for (let i = 0; i < count.value * 2; i += 2) {
velocityArray[i] = ((Math.random() - 0.5) / 5) * speed.value * randomness.value
velocityArray[i + 1] = (Math.random() / 5) * speed.value + 0.01
velocityArray[i + 1] = (Math.random() / 5) * speed.value
}
}
setSpeed()
Expand Down

0 comments on commit e67f3a2

Please sign in to comment.