animation length

This commit is contained in:
serge
2022-08-01 19:05:51 +10:00
parent ed2fff88a8
commit d910e2e49d
2 changed files with 4 additions and 3 deletions

View File

@@ -18,7 +18,7 @@ export default ({ regl, config }, inputs) => {
tex: inputs.primary,
bloomTex: inputs.bloom,
intensity: ()=>{
let inten = 2 - (Date.now() - window.ripples[0])/2000
let inten = 1 - (Date.now() - window.ripples[0])/4000
if (inten < 0) inten = 0
return inten / 10
},