dreiDrei.docs

PositionalAudio

  • Lulaby city
    Lulaby city

A wrapper around THREE.PositionalAudio. Add this to groups or meshes to tie them to a sound that plays when the camera comes near.

<PositionalAudio
  url="/sound.mp3"
  distance={1}
  loop
  {...props} // All THREE.PositionalAudio props are valid
/>

src/core/PositionalAudio.tsx

Edit this page

Outlines
Sampler
  • getting started
  • abstractions
    • AsciiRenderer
    • Billboard
    • Clone
    • ComputedAttribute
    • Decal
    • Edges
    • Effects
    • GradientTexture
    • Image
    • MarchingCubes
    • Outlines
    • PositionalAudio
    • Sampler
    • ScreenSizer
    • ScreenSpace
    • Splat
    • Svg
    • Text
    • Text3D
    • Trail
    • useAnimations
  • cameras
  • controls
  • gizmos
  • loaders
  • misc
  • modifiers
  • performances
  • portals
  • shaders
  • shapes
  • staging

On This Page