Skip to content

Commit 3edf166

Browse files
authored
Remove deprecated ShadowCatcher script and update exports in index.ts (#255)
* Remove deprecated ShadowCatcher script and update exports in index.ts * adds changeset * fix version mismatch
1 parent 8d7f477 commit 3edf166

File tree

7 files changed

+1804
-2319
lines changed

7 files changed

+1804
-2319
lines changed

.changeset/little-rivers-hope.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@playcanvas/react": minor
3+
---
4+
5+
Removes deprecated ShadowCatcher. Use the Playcanvas exported version

packages/blocks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"url": "https://github.com/playcanvas/react/issues"
4747
},
4848
"dependencies": {
49-
"playcanvas": "~2.8.2 || ~2.11.0",
49+
"playcanvas": "2.11.8",
5050
"@playcanvas/react": "workspace:*",
5151
"@radix-ui/react-dialog": "^1.1.14",
5252
"@radix-ui/react-dropdown-menu": "^2.1.15",

packages/docs/content/docs/guide/getting-started.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Here's what it should look like...
3131
<ShadowCatcher intensity={1} width={5} depth={5} />
3232
{/* Create a camera entity */}
3333
<Entity name='camera' position={[4, 1, 4]}>
34-
<Camera clearColor='#090707' fov={28} />
34+
<Camera clearColor='#090707' fov={28} renderSceneColorMap={true}/>
3535
<OrbitControls inertiaFactor={0.07} distanceMin={6} distanceMax={10} pitchAngleMin={1} pitchAngleMax={90}/>
3636
{/* <PostEffects /> This doesn't work yet */}
3737
<AutoRotate />
@@ -191,7 +191,7 @@ export default function App() {
191191
{/* Render the background grid */}
192192
<Grid />
193193
{/* Add a shadow catcher to catch the shadows from the model */}
194-
<ShadowCatcher intensity={0.9} />
194+
<ShadowCatcher width={5} depth={5} />
195195
<Entity name='camera' position={[0, 0, 2]}>
196196
<Camera />
197197
<OrbitControls/>

packages/lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
}
8282
},
8383
"peerDependencies": {
84-
"playcanvas": "~2.8.2 || ~2.11.0",
84+
"playcanvas": "2.11.8",
8585
"react": "^18.3.1 || ^19.1.0",
8686
"react-dom": "^18.3.1 || ^19.1.0",
8787
"sync-ammo": "^0.1.2"

packages/lib/src/scripts/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"use client";
22

33
export { OrbitControls } from './orbit-controls/index.tsx';
4-
export { ShadowCatcher } from './shadow-catcher/index.js';
54
export { AutoRotator } from './auto-rotator/auto-rotator.tsx';

packages/lib/src/scripts/shadow-catcher/index.js

Lines changed: 0 additions & 138 deletions
This file was deleted.

0 commit comments

Comments
 (0)