Skip to content

Commit 1145905

Browse files
marklundinCopilot
andauthored
Add renderSceneColorMap to Examples (#249)
* Update Camera component in examples to include renderSceneColorMap prop for enhanced rendering * Update packages/docs/content/examples/environment.mdx Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent 617939a commit 1145905

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/docs/content/examples/environment.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const Example = () => {
2727

2828
{/* Create a camera entity */}
2929
<Entity name='camera' position={[5, 1, -5]}>
30-
<Camera clearColor='#090707' fov={45} />
30+
<Camera clearColor='#090707' fov={45} renderSceneColorMap={true} />
3131
<OrbitControls inertiaFactor={0.07} distanceMin={3} distanceMax={10} pitchAngleMin={1} pitchAngleMax={90}/>
3232
{asset && <PostEffects />}
3333
<AutoRotate />

packages/docs/content/examples/model-viewer.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const ModelViewer = () => {
1818

1919
{/* Create a camera entity */}
2020
<Entity name='camera' position={[4, 1, 4]}>
21-
<Camera clearColor='#090707' fov={28} />
21+
<Camera clearColor='#090707' fov={28} renderSceneColorMap={true} />
2222
<OrbitControls inertiaFactor={0.07} distanceMin={6} distanceMax={10} pitchAngleMin={1} pitchAngleMax={90}/>
2323
{asset && <PostEffects />}
2424
<AutoRotate />

packages/docs/content/examples/scripting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const Demo = () => {
1212

1313
{/* Create a camera entity */}
1414
<Entity name='camera' position={[4, 1, 4]}>
15-
<Camera />
15+
<Camera renderSceneColorMap={true} />
1616
<OrbitControls inertiaFactor={0.07} distanceMin={6} distanceMax={10} pitchAngleMin={1} pitchAngleMax={90}/>
1717

1818
</Entity>

packages/docs/templates/HomePageExample.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const Example = () => {
2020
<Grid />
2121
<ShadowCatcher width={5} depth={5} />
2222
<Entity name='camera' position={[4, 1, 4]}>
23-
<Camera clearColor='#090707' fov={28} />
23+
<Camera clearColor='#090707' fov={28} renderSceneColorMap={true} />
2424
<OrbitControls inertiaFactor={0.07} distanceMin={6} distanceMax={10} pitchAngleMin={1} pitchAngleMax={90}/>
2525
<StaticPostEffects />
2626
<AutoRotate />

0 commit comments

Comments
 (0)