Skip to content

Commit

Permalink
fix(stage): load environment from jsdelivr
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Oct 3, 2024
1 parent 46d96ee commit 99af232
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/stage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const Stage = ({ children }: React.PropsWithChildren) => {
background,
backgroundBlurriness,
ground,
preset,
// preset,
} = useControls('Stage', {
background: true,
backgroundBlurriness: {
Expand All @@ -16,7 +16,7 @@ export const Stage = ({ children }: React.PropsWithChildren) => {
value: 0.5,
},
ground: false,
preset: 'dawn',
// preset: 'dawn',
})

return (
Expand All @@ -26,7 +26,8 @@ export const Stage = ({ children }: React.PropsWithChildren) => {
background={background}
backgroundBlurriness={backgroundBlurriness}
ground={ground}
preset={preset as 'dawn'}
files="https://cdn.jsdelivr.net/gh/pmndrs/drei-assets/hdri/kiara_1_dawn_1k.hdr"
// preset={preset as 'dawn'}
/>
</IfInSessionMode>
<SoftShadows />
Expand Down

0 comments on commit 99af232

Please sign in to comment.