feat: add ambient sound

This commit is contained in:
2026-05-31 14:40:49 -03:00
parent 18246eab22
commit a40ee3854b
3 changed files with 5 additions and 1 deletions
Binary file not shown.
Binary file not shown.
+4
View File
@@ -10,6 +10,7 @@ import { folder, useControls, Leva } from 'leva';
import SealCube from './scene-components/sealcube';
import Terrain from './scene-components/terrain';
import { LUTCubeLoader } from 'three/examples/jsm/Addons.js';
import { AmbientSound } from './scene-components/ambient-sound';
function Loader() {
const { progress, active } = useProgress();
@@ -147,6 +148,9 @@ export default function Seal() {
gl={{ antialias: true }}
className='canvas'
>
<AmbientSound url="niko/snd/wind.mp3" volume={0.4}/>
<AmbientSound url="niko/snd/birds.mp3" volume={0.1}/>
<Scene />
<PostProcessing />