Better BG for the space playground
This commit is contained in:
parent
aec53b25d1
commit
a11918fc20
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue