Uncaught TypeError: Cannot read properties of undefined (reading 'geometry')
at Object.update (snow3d.js?ver=cc4a969e02505d0bca7c:formatted:15077:44)
at f (snow3d.js?ver=cc4a969e02505d0bca7c:formatted:14755:47)
at m (snow3d.js?ver=cc4a969e02505d0bca7c:formatted:14786:28)
at l.tick (snow3d.js?ver=cc4a969e02505d0bca7c:formatted:14830:17)
at e (snow3d.js?ver=cc4a969e02505d0bca7c:formatted:14617:31)
Ts = t=>{
ms({
targets: bs,
opacity: Number(t),
duration: 2700,
easing: "easeOutQuint",
update: ()=>{
const t = Ss.particles.geometry.attributes.opacity
, e = t.count / 2;
for (let n = 0; n < e; n++)
t.setX(n, bs.opacity);
Ss.particles.geometry.attributes.opacity.needsUpdate = !0
}
})
}
This is the line where error occurs: `const t = Ss.particles.geometry.attributes.opacity`