Minor changes

This commit is contained in:
Aria Minaei 2021-09-12 21:21:49 +02:00
parent b5fa729e5d
commit eea1f424fc
4 changed files with 9 additions and 2 deletions

View file

@ -59,7 +59,11 @@ function App() {
const [bgIndex, setBgIndex] = useState(0)
const bg = bgs[bgIndex]
return (
<div onClick={() => setBgIndex((bgIndex) => (bgIndex + 1) % bgs.length)}>
<div
onClick={() => {
// return setBgIndex((bgIndex) => (bgIndex + 1) % bgs.length)
}}
>
<Canvas dpr={[1.5, 2]} linear shadows frameloop="demand">
<SheetProvider getSheet={() => getProject('Space').sheet('Scene')}>
<fog attach="fog" args={[bg, 16, 30]} />