Skip to content

Commit

Permalink
Fix environment-blur-and-transitions demo (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
rndexe authored Aug 1, 2024
1 parent d160474 commit b2280d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demos/environment-blur-and-transitions/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function App() {
<Canvas shadows camera={{ position: [0, 0, 4.5], fov: 50 }}>
<group position={[0, -0.65, 0]}>
<Sphere />
<AccumulativeShadows temporal frames={200} color="purple" colorBlend={0.5} opacity={1} scale={10} alphaTest={0.85}>
<AccumulativeShadows temporal frames={200} color="purple" colorBlend={0.5} opacity={1} scale={10} alphaTest={0.75}>
<RandomizedLight amount={8} radius={5} ambient={0.5} position={[5, 3, 2]} bias={0.001} />
</AccumulativeShadows>
</group>
Expand Down Expand Up @@ -46,5 +46,5 @@ function Env() {
onChange: (value) => startTransition(() => setPreset(value))
}
})
return <Environment preset={preset} background blur={blur} />
return <Environment background preset={preset} backgroundBlurriness={blur} />
}

0 comments on commit b2280d5

Please sign in to comment.