feat: add ambient sound
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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();
|
||||
@@ -129,7 +130,7 @@ function PostProcessing() {
|
||||
<SMAA />
|
||||
<HueSaturation saturation={0.3} />
|
||||
<BrightnessContrast brightness={0.05} contrast={-0.1} />
|
||||
<LutEffect/>
|
||||
<LutEffect />
|
||||
</EffectComposer>)
|
||||
}
|
||||
|
||||
@@ -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 />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user