On the next branch, in README.md at the "Basic Usage" section it says to initialize the Canvas component as so:
|
<Canvas camera={{ position: [0, 0, 5] }}> |
However, as far as I can tell, the most recent version of the next branch, the correct prop to Canvas is defaultCamera, not camera:
|
defaultCamera?: Partial<Props<PerspectiveCamera> | Props<OrthographicCamera>> | Camera |
I am still a beginner in both SolidJS and ThreeJS, so I would totally understand if I am missing something. However, copying the "Basic Usage" code did not work until I changed the Canvas prop from camera to defaultCamera. This is using "solid-three": "^0.3.0-next.11".
On the
nextbranch, inREADME.mdat the "Basic Usage" section it says to initialize theCanvascomponent as so:solid-three/README.md
Line 130 in b213d25
However, as far as I can tell, the most recent version of the
nextbranch, the correct prop to Canvas isdefaultCamera, notcamera:solid-three/src/canvas.tsx
Line 22 in b213d25
I am still a beginner in both SolidJS and ThreeJS, so I would totally understand if I am missing something. However, copying the "Basic Usage" code did not work until I changed the
Canvasprop fromcameratodefaultCamera. This is using"solid-three": "^0.3.0-next.11".