SceneContainer
The themed canvas wrapper every other scene builds on. It sets up the <Canvas>, camera, a fully offline lighting rig (no HDRI downloads) and optional
The themed canvas wrapper every other scene builds on. It sets up the <Canvas>, camera, a fully offline lighting rig (no HDRI downloads) and optional fog.
Customize
Environment
Fog
Props
| Prop | Type | Default | Description |
|---|---|---|---|
className | string | — | Classes for the wrapper element (set its height here). |
theme | "auto" | "light" | "dark" | "auto" | Color source. auto reads the live shadcn theme. |
environment | "studio" | "city" | "dawn" | "night" | "studio" | Offline lighting rig preset (no HDRI downloads). |
fog | boolean | false | Adds themed fog using --background. |
children | ReactNode | — | Your 3D content (meshes, points, drei helpers). |
classNamestringClasses for the wrapper element (set its height here).
Default
—theme"auto" | "light" | "dark"Color source. auto reads the live shadcn theme.
Default
"auto"environment"studio" | "city" | "dawn" | "night"Offline lighting rig preset (no HDRI downloads).
Default
"studio"fogbooleanAdds themed fog using --background.
Default
falsechildrenReactNodeYour 3D content (meshes, points, drei helpers).
Default
—