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
As a developer using TresJS, I want to have a <Portal> component that can contain a separate Scene and context.
Suggested solution
Provide a <Portal> component similar to R3F.
Requirements
Add override-able pointer to TresContext (Also add as prop to TresCanvas: see Use window for pointerevents #581 ); use vanilla THREE.Vector2, accept Vector2 and UsePointerOptions as TresCanvas prop
Make these fields on TresContext swappable and (in some case injectable by the user): scene, camera, cameras, controls, raycaster, eventManager, sizes
Description
As a developer using TresJS, I want to have a
<Portal>
component that can contain a separateScene
andcontext
.Suggested solution
Provide a
<Portal>
component similar to R3F.Requirements
TresContext
(Also add as prop to TresCanvas: see Use window for pointerevents #581 ); use vanillaTHREE.Vector2
, acceptVector2
andUsePointerOptions
as TresCanvas propTresContext
swappable and (in some case injectable by the user): scene, camera, cameras, controls, raycaster, eventManager, sizesValidations
The text was updated successfully, but these errors were encountered: