(hex)
| 807 | }; |
| 808 | |
| 809 | function srgbColor(hex) { |
| 810 | const c = new THREE.Color(hex); |
| 811 | return c.convertSRGBToLinear(); |
| 812 | } |
| 813 | |
| 814 | function smoothDampVec2(current, target, currentVelocity, smoothTime, maxSpeed, deltaTime) { |
| 815 | const out = current.clone(); |