Tresjs / cientos

Collection of useful helpers and fully functional, ready-made abstractions for TresJS
https://cientos.tresjs.org/
MIT License
278 stars 40 forks source link

Positional audio component #246

Closed JaimeTorrealba closed 4 months ago

JaimeTorrealba commented 11 months ago

Description

Description As a developer using Tresjs I would like to have a simple way to add a positional global instance.

Suggested solution

Could be similar to: https://github.com/pmndrs/drei/blob/master/src/core/PositionalAudio.tsx

An abstraction of: https://threejs.org/docs/index.html?q=posi#api/en/audio/PositionalAudio

Alternative

Feel free to suggest other alternatives

Additional context

We already have a GlobalAudio component

Validations

damienmontastier commented 6 months ago

@JaimeTorrealba You can assign me this issue, I'll finish the Decal component soon and go straight on to this ✌️

damienmontastier commented 6 months ago

@JaimeTorrealba Finally, i've PR this issue before component. PR#365

JaimeTorrealba commented 6 months ago

That's fantastic @damienmontastier I'll look at it thanks for this one :)

andretchen0 commented 4 months ago

@damienmontastier @JaimeTorrealba

365 adds this. So we can close here, right?

Thanks!