Better BG for the space playground

This commit is contained in:
Aria Minaei 2021-07-22 21:25:50 +02:00
parent aec53b25d1
commit a11918fc20

View file

@ -46,6 +46,7 @@ function Model({url}: {url: string}) {
} }
function App() { function App() {
const bg = '#272730'
return ( return (
<div> <div>
<Canvas <Canvas
@ -56,7 +57,8 @@ function App() {
sheet: getProject('Example project').sheet('R3F-Canvas'), sheet: getProject('Example project').sheet('R3F-Canvas'),
})} })}
> >
<fog attach="fog" args={['#272730', 16, 30]} /> <fog attach="fog" args={[bg, 16, 30]} />
<color attach="background" args={[bg]} />
<ambientLight intensity={0.75} /> <ambientLight intensity={0.75} />
<e.perspectiveCamera <e.perspectiveCamera
uniqueName="Camera" uniqueName="Camera"