You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -413,7 +413,7 @@ Provides access to the `three.js` context, including the renderer, scene, camera
413
413
`solid-three` implements a stack-based system for managing its current camera and raycaster:
414
414
415
415
- **Stack-based Management**: Both cameras and raycasters are managed as stacks internally
416
-
- **Default at Tail**: The `defaultCamera` and `defaultRaycaster` from Canvas props form the tail of their respective stacks
416
+
- **Default at Tail**: The `camera` and `raycaster` from Canvas props form the tail of their respective stacks
417
417
- **Current Active Camera at Head**: The camera/raycaster at the top of the stack is the currently active camera/raycaster
418
418
- **Push To The Stack To Become Active**: By calling `setCamera(camera)` and `setRaycaster(raycaster)`, the camera/raycaster is pushed to the stack. This causes it to become the currently active camera/raycaster
419
419
- **Pop From The Stack To Deactivate**: `setCamera(camera)` and `setRaycaster(raycaster)` return a cleanup-function to pop the camera/raycaster from the stack. If the camera/raycaster was on top of the stack, the previous camera/raycaster in the stack becomes active again
@@ -745,7 +745,7 @@ const App = () => {
745
745
const raycaster =newCursorRaycaster()
746
746
747
747
// CursorRaycaster is used by default, but you can explicitly set it:
748
-
return <CanvasdefaultRaycaster={raycaster}>{/* Your scene */}</Canvas>
748
+
return <Canvasraycaster={raycaster}>{/* Your scene */}</Canvas>
749
749
}
750
750
```
751
751
@@ -760,7 +760,7 @@ import { CenterRaycaster } from "solid-three"
760
760
constApp= () => {
761
761
const raycaster =newCenterRaycaster()
762
762
763
-
return <CanvasdefaultRaycaster={raycaster}>>{/* Your scene */}</Canvas>
763
+
return <Canvasraycaster={raycaster}>>{/* Your scene */}</Canvas>
0 commit comments